Skip to content

Commit 06c0a75

Browse files
author
Sergey Kanaev
committed
Address review comments
Signed-off-by: Sergey Kanaev <[email protected]>
1 parent 05a3bc8 commit 06c0a75

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

sycl/doc/PreprocessorMacros.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,16 @@ This file describes macros that have effect on SYCL compiler and run-time.
4040

4141
- **SYCL_ENABLE_FALLBACK_ASSERT**
4242

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`.
5253

5354
## Version macros
5455

0 commit comments

Comments
 (0)