Skip to content

[SYCL][DOC] Fix a typo in assert doc #4674

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 4, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions sycl/doc/Assert.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ Implementation of this function is supplied by Native Device Compiler for
safe approach or by DPCPP Compiler for fallback one.

In order to distinguish which implementation to use, DPCPP Runtime checks for
`PI_INTEL_DEVICELIB_CASSERT` extension. If the extension isn't available, then
fallback implementation is used.
`PI_DEVICE_INFO_EXTENSION_DEVICELIB_ASSERT` extension. If the extension isn't
available, then fallback implementation is used.


## Safe approach
Expand All @@ -103,7 +103,7 @@ This is the preferred approach and implementations should use it when possible.
It guarantees assertion failure notification delivery to the host regardless of
kernel behavior which hit the assertion. If backend suports the safe approach,
it must report this capability to DPCPP Runtime via the
`PI_INTEL_DEVICELIB_CASSERT` extension query.
`PI_DEVICE_INFO_EXTENSION_DEVICELIB_ASSERT` extension query.

The Native Device Compiler is responsible for providing implementation of
`__devicelib_assert_fail` which completely hides details of communication
Expand All @@ -128,9 +128,10 @@ The following sequence of events describes how user code gets notified:
## Fallback approach

If Device-side Runtime doesn't support `__devicelib_assert_fail` (as reported
via `PI_INTEL_DEVICELIB_CASSERT` extension query) then a fallback approach comes
in place. The approach doesn't require any support from Device-side Runtime and
Native Device Compiler. Neither it does from Low-level Runtime.
via `PI_DEVICE_INFO_EXTENSION_DEVICELIB_ASSERT` extension query) then a fallback
approach comes in place. The approach doesn't require any support from
Device-side Runtime and Native Device Compiler. Neither it does from Low-level
Runtime.

Within this approach, a mutable program scope variable is introduced. This
variable stores a flag which says if an assert failure was encountered. Fallback
Expand Down