File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -38,9 +38,9 @@ This file describes macros that have effect on SYCL compiler and run-time.
38
38
39
39
Disables a message which warns about unsupported C++ version.
40
40
41
- - ** SYCL_ENABLE_FALLBACK_ASSERT **
41
+ - ** SYCL_FALLBACK_ASSERT **
42
42
43
- Defining this macro enables the fallback assert feature even on devices
43
+ Defining as non-zero enables the fallback assert feature even on devices
44
44
without native support. Be aware that this will add some overhead that is
45
45
associated with submitting kernels that call ` assert() ` . When this macro is
46
46
not defined, the logic for detecting assertion failures in kernels is
@@ -50,6 +50,7 @@ This file describes macros that have effect on SYCL compiler and run-time.
50
50
these devices regardless of whether this macro is defined because that logic
51
51
does not add any extra overhead. One can check to see if a device has native
52
52
support for ` assert() ` via ` aspect::ext_oneapi_native_assert ` .
53
+ Default value is 0.
53
54
54
55
## Version macros
55
56
Original file line number Diff line number Diff line change 67
67
68
68
// Helper macro to identify if fallback assert is needed
69
69
// FIXME remove __NVPTX__ condition once devicelib supports CUDA
70
- #if defined(SYCL_ENABLE_FALLBACK_ASSERT )
71
- #define __SYCL_USE_FALLBACK_ASSERT 1
70
+ #if defined(SYCL_FALLBACK_ASSERT )
71
+ #define __SYCL_USE_FALLBACK_ASSERT SYCL_FALLBACK_ASSERT
72
72
#else
73
73
#define __SYCL_USE_FALLBACK_ASSERT 0
74
74
#endif
Original file line number Diff line number Diff line change 18
18
* pipe.
19
19
*/
20
20
21
- #define SYCL_ENABLE_FALLBACK_ASSERT 1
21
+ #define SYCL_FALLBACK_ASSERT 1
22
22
// Enable use of interop kernel c-tor
23
23
#define __SYCL_INTERNAL_API
24
24
#include < CL/sycl.hpp>
You can’t perform that action at this time.
0 commit comments