Skip to content

Commit e1f2457

Browse files
committed
add build assertion
1 parent 575d6ac commit e1f2457

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/comm/SYCLHelpers.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
#include <comm/Scalar.h>
44
#include <sycl/sycl.hpp>
55

6+
#if !defined(SYCL_EXT_ONEAPI_ENQUEUE_FUNCTIONS) || \
7+
(SYCL_EXT_ONEAPI_ENQUEUE_FUNCTIONS != 1)
8+
#error This change enables event-less APIs, \
9+
please ensure SYCL_EXT_ONEAPI_ENQUEUE_FUNCTIONS=1.
10+
#endif
11+
612
// sycl access address space
713
static constexpr auto sycl_priv_space =
814
sycl::access::address_space::private_space;

0 commit comments

Comments
 (0)