@@ -40,15 +40,16 @@ This file describes macros that have effect on SYCL compiler and run-time.
40
40
41
41
- ** SYCL_ENABLE_FALLBACK_ASSERT**
42
42
43
- Defining this macro enables fallback assert feature. Be aware that this will
44
- add some overhead that is associated with submitting kernels that call
45
- ` assert() ` . When this macro is not defined, the logic for detecting assertion
46
- failures in kernels is disabled, so a failed assert will not cause a message
47
- to be printed and will not cause the program to abort. However, this macro
48
- only affects kernels that are submitted to devices that do ** not** have native
49
- support for ` assert() ` because devices with native support do not impose any
50
- extra overhead. One can check to see if a device has native support for
51
- ` assert() ` via ` aspect::ext_oneapi_native_assert ` .
43
+ Defining this macro 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
+ 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 ` .
52
53
53
54
## Version macros
54
55
0 commit comments