Skip to content

Commit 6a34aac

Browse files
committed
[SYCL][Doc] Attempt to clarify group barrier fence
Signed-off-by: John Pennycook <[email protected]>
1 parent ffe5ba0 commit 6a34aac

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sycl/doc/extensions/GroupAlgorithms/SYCL_INTEL_group_algorithms.asciidoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,14 +260,16 @@ The return types of the collective functions in {cpp}17 are not deduced from the
260260

261261
==== Synchronization
262262

263+
The behavior of memory fences in this section is aligned with the single happens-before relationship defined by the +SYCL_INTEL_extended_atomics+ extension.
264+
263265
|===
264266
|Function|Description
265267

266268
|+template <typename Group> void barrier(Group g);+
267-
|Synchronize all work-items in the group, and ensure that all memory accesses prior to the barrier are visible to all work-items in the group after the barrier. The scope of the group memory fences implied by this barrier is the narrowest scope including all work-items in the group.
269+
|Synchronize all work-items in the group, and ensure that all memory accesses to any address space prior to the barrier are visible to all work-items in the group after the barrier. The scope of the group memory fences implied by this barrier is the narrowest scope including all work-items in the group.
268270

269271
|+template <typename Group> void barrier(Group g, memory_scope scope);+
270-
|Synchronize all work-items in the group, and ensure that all memory accesses prior to the barrier are visible to all work-items in the group after the barrier. The scope of the group memory fences implied by this barrier is specified by _scope_.
272+
|Synchronize all work-items in the group, and ensure that all memory accesses to any address space prior to the barrier are visible to all work-items specified by _scope_ after the barrier. The scope of the group memory fences implied by this barrier is controlled by _scope_ and must be broader than the narrowest scope including all work-items in the group.
271273

272274
|===
273275

0 commit comments

Comments
 (0)