Skip to content

Commit a9df9b6

Browse files
committed
Clarify that restrictions may be TU-based
Signed-off-by: John Pennycook <[email protected]>
1 parent 834e66e commit a9df9b6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sycl/doc/extensions/InvokeSIMD/InvokeSIMD.asciidoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,10 @@ the user to insert any form of explicit synchronization functions to ensure
385385
memory consistency across SIMD lanes.
386386

387387
Due to potential differences in execution model, a SIMD function cannot call
388-
a `SYCL_EXTERNAL` function that was compiled for a SPMD context. Behavior in
389-
this case is undefined.
388+
any function that was compiled for a SPMD context. `SYCL_EXTERNAL` functions
389+
defined in a different translation unit to the SIMD function are not required
390+
to be compiled for SIMD contexts by default, and as a result such functions
391+
are incompatible with SIMD functions by default.
390392

391393
NOTE: Implementations are encouraged to throw an error in cases where this
392394
behavior can be detected, and to do so as early as possible.

0 commit comments

Comments
 (0)