File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -219,12 +219,8 @@ namespace detail {
219219
220220 template <typename KernelName, typename ... Params>
221221 inline void invoke_sycl_parallel_for (sycl::handler& cgh, Params&&... args) {
222- static_assert (CELERITY_FEATURE_UNNAMED_KERNELS || !is_unnamed_kernel<KernelName>,
223- " Your SYCL implementation does not support unnamed kernels, add a kernel name template parameter to this parallel_for invocation" );
224222 if constexpr (detail::is_unnamed_kernel<KernelName>) {
225- #if CELERITY_FEATURE_UNNAMED_KERNELS // see static_assert above
226223 cgh.parallel_for (std::forward<Params>(args)...);
227- #endif
228224 } else {
229225 cgh.parallel_for <KernelName>(std::forward<Params>(args)...);
230226 }
Original file line number Diff line number Diff line change @@ -329,8 +329,6 @@ namespace detail {
329329 });
330330 }
331331
332- #if CELERITY_FEATURE_UNNAMED_KERNELS
333-
334332 TEST_CASE_METHOD (test_utils::runtime_fixture, " handler::parallel_for kernel names are optional" , " [handler][reduction]" ) {
335333 queue q;
336334
@@ -362,8 +360,6 @@ namespace detail {
362360 });
363361 }
364362
365- #endif
366-
367363 TEST_CASE_METHOD (test_utils::runtime_fixture, " handler throws when accessor target does not match command type" , " [handler]" ) {
368364 queue q;
369365 buffer<size_t , 1 > buf0{1 };
You can’t perform that action at this time.
0 commit comments