Skip to content

Commit a9c3001

Browse files
committed
Remove check: Unnamed kernels are unconditionally supported
1 parent 34e84bf commit a9c3001

2 files changed

Lines changed: 0 additions & 8 deletions

File tree

include/handler.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

test/runtime_tests.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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};

0 commit comments

Comments
 (0)