Skip to content

Commit 8f15db0

Browse files
committed
Clarify macros being defined on both host and device
Signed-off-by: Larsen, Steffen <[email protected]>
1 parent 35e5487 commit 8f15db0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sycl/doc/design/DeviceAspectTraitDesign.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ the target.
5454

5555
When compiling a SYCL program, where $[t1, t2, \ldots, tn]$ are the $n$ targets
5656
specified in `-fsycl-targets` including any targets implicitly added by the
57-
driver, the driver defines the following macros:
57+
driver, the driver defines the following macros in both host and device
58+
compilation invocations:
5859
* `__SYCL_ALL_DEVICES_HAVE_`$i$`__` as `1` for all $i$ in
5960
${\bigcap}^n_{k=1} A^{all}_{tk}$.
6061
* `__SYCL_ANY_DEVICE_HAS_ANY_ASPECT__` as `1` if

0 commit comments

Comments
 (0)