@@ -366,7 +366,7 @@ namespace detail {
366
366
buffer<size_t , 1 > buf1{1 };
367
367
368
368
SECTION (" capturing host accessor into device kernel" ) {
369
- #if !defined(__SYCL_COMPILER_VERSION) // TODO: This may break when using AdaptiveCpp w/ DPC++ as compiler
369
+ #if !CELERITY_SYCL_IS_DPCPP
370
370
CHECK_THROWS_WITH (([&] {
371
371
q.submit ([&](handler& cgh) {
372
372
accessor acc0{buf1, cgh, one_to_one{}, write_only_host_task};
@@ -400,7 +400,7 @@ namespace detail {
400
400
401
401
TEST_CASE_METHOD (test_utils::runtime_fixture, " handler throws when accessing host objects within device tasks" , " [handler]" ) {
402
402
queue q;
403
- #if !defined(__SYCL_COMPILER_VERSION) // TODO: This may break when using AdaptiveCpp w/ DPC++ as compiler
403
+ #if !CELERITY_SYCL_IS_DPCPP
404
404
experimental::host_object<size_t > ho;
405
405
406
406
CHECK_THROWS_WITH (([&] {
@@ -427,7 +427,7 @@ namespace detail {
427
427
accessor acc0{buf0, cgh, one_to_one{}, write_only};
428
428
accessor acc1{buf1, cgh, one_to_one{}, write_only};
429
429
// DPC++ has its own compile-time check for this, so we can't actually capture anything by reference
430
- #if !defined(__SYCL_COMPILER_VERSION) // TODO: This may break when using AdaptiveCpp w/ DPC++ as compiler
430
+ #if !CELERITY_SYCL_IS_DPCPP
431
431
cgh.parallel_for (range<1 >(1 ), [acc0, &acc1 /* oops */ ](item<1 >) {
432
432
(void )acc0;
433
433
(void )acc1;
0 commit comments