We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9061fd commit e9d9df1Copy full SHA for e9d9df1
sycl/include/CL/sycl/detail/pi.hpp
@@ -423,6 +423,14 @@ template <class To, class From> inline To cast(From value) {
423
return (To)(value);
424
}
425
426
+template <class To, class From> inline To cast(std::vector<From> value) {
427
+ RT::assertion(false,
428
+ "Compatibility specialization, not expected to be used. "
429
+ "The only allowed cast using a vector of From values is "
430
+ "implemented in the OpenCL backend (see cl_event case).");
431
+ return {};
432
+}
433
+
434
#ifdef PI_OPENCL_AVAILABLE
435
436
// Cast for std::vector<cl_event>, according to the spec, make_event
0 commit comments