Skip to content

Commit 641d071

Browse files
Sergey Kanaevkbobrovs
andcommitted
Address review comment
Signed-off-by: Sergey Kanaev <[email protected]> Co-authored-by: kbobrovs <[email protected]>
1 parent 32a32f4 commit 641d071

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sycl/doc/Assert.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,9 @@ is compiled with assertions disabled.*
353353
There're two commands used for reading assert failure flag: copy kernel and
354354
checker host task. The copy kernel will copy `AssertHappenedMem` to host and
355355
host-task will check the `Flag` value and `abort()` as needed. The kernel and
356-
host task are enqueued when `NDEBUG` macro isn't defined.
356+
host task are enqueued together with a kernel only when the corresponding device
357+
binary image for this kernel tells that it may use (maybe indirectly) the
358+
`assert` in its code.
357359

358360
All translation units provided by the user should have a declaration of the
359361
assert flag read function available:

0 commit comments

Comments
 (0)