@@ -38,16 +38,19 @@ 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_DISABLE_FALLBACK_ASSERT**
42
-
43
- Defining this macro eliminates some overhead that is associated with
44
- submitting kernels that call ` assert() ` . When this macro is defined, the logic
45
- for detecting assertion failures in kernels is disabled, so a failed assert
46
- will not cause a message to be printed and will not cause the program to
47
- abort. However, this macro only affects kernels that are submitted to devices
48
- that do ** not** have native support for ` assert() ` because devices with native
49
- support do not impose any extra overhead. One can check to see if a device has
50
- native support for ` assert() ` via ` aspect::ext_oneapi_native_assert ` .
41
+ - ** SYCL_FALLBACK_ASSERT**
42
+
43
+ Defining as non-zero enables the fallback assert feature even on devices
44
+ without native support. Be aware that this will add some overhead that is
45
+ associated with submitting kernels that call ` assert() ` . When this macro is
46
+ defined as 0 or is not defined, the logic for detecting assertion failures in kernels is
47
+ disabled, so a failed assert will not cause a message to be printed and will
48
+ not cause the program to abort. Some devices have native support for
49
+ assertions. The logic for detecting assertion failures is always enabled on
50
+ these devices regardless of whether this macro is defined because that logic
51
+ does not add any extra overhead. One can check to see if a device has native
52
+ support for ` assert() ` via ` aspect::ext_oneapi_native_assert ` .
53
+ This macro is undefined by default.
51
54
52
55
- ** SYCL2020_CONFORMANT_APIS**
53
56
This macro is used to comply with the SYCL 2020 specification, as some of the current
0 commit comments