Skip to content

Commit dc058a9

Browse files
Sergey Kanaevbader
Sergey Kanaev
andcommitted
Address review comments
Co-authored-by: bader <[email protected]> Signed-off-by: Sergey Kanaev <[email protected]>
1 parent 641d071 commit dc058a9

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

sycl/doc/Assert.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@ int main() {
3838
}
3939
```
4040
41-
In this use-case every work-item with even X dimension will trigger assertion
42-
failure. Assertion failure should trigger a call to `std::abort()` at host as
43-
described in
41+
In this use-case every work-item with even index along 0 dimension will trigger
42+
assertion failure. Assertion failure should trigger a call to `std::abort()` at
43+
host as described in
4444
[extension](extensions/Assert/SYCL_INTEL_ASSERT.asciidoc).
4545
Even though multiple failures of the same or different assertions can happen in
46-
multiple workitems, implementation is required to deliver at least one
46+
multiple work-items, implementation is required to deliver at least one
4747
assertion. The assertion failure message is printed to `stderr` by DPCPP
4848
Runtime or underlying backend.
4949
5050
When multiple kernels are enqueued and more than one fail at assertion, at least
51-
single assertion should be reported.
51+
one assertion should be reported.
5252
5353
5454
## User requirements

sycl/doc/extensions/Assert/SYCL_ONEAPI_ASSERT.asciidoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@
2121
:cpp: C++
2222

2323
== Notice
24+
2425
IMPORTANT: This specification is a draft.
2526

26-
Copyright (c) 2021-2021 Intel Corporation. All rights reserved.
27+
Copyright (c) 2021 Intel Corporation. All rights reserved.
2728

2829
NOTE: Khronos(R) is a registered trademark and SYCL(TM) and SPIR(TM) are
2930
trademarks of The Khronos Group Inc. OpenCL(TM) is a trademark of Apple Inc.
@@ -49,6 +50,7 @@ subject to change they are not intended to be used by shipping software
4950
products.
5051

5152
== Introduction
53+
5254
This extension adds the ability for device code to call the C++ `assert()`
5355
macro. The behavior of `assert()` in device code is similar to its behavior in
5456
host code. If the asserted condition is false, a message is printed to `stderr`

0 commit comments

Comments
 (0)