Skip to content

Commit d141074

Browse files
committed
[SYCL][Docs] Invert group numbering for ballot groups
The current extension for non-uniform groups state that ballot groups are numbered 0 if the predicate was true and 1 if the predicate was false. However, the implementation has the inverse numbering. This commit changes the extension to make the numbering consistent with the implementation, in turn making the group numbering directly convertible to a boolean value equal to the corresponding predicate. Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
1 parent 7a21f07 commit d141074

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/doc/extensions/experimental/sycl_ext_oneapi_non_uniform_groups.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,8 @@ id_type get_group_id() const;
337337
----
338338
_Returns_: An `id` representing the index of the ballot-group.
339339

340-
NOTE: This will always be either 0 (representing the group of work-items where
341-
the predicate was true) or 1 (representing the group of work-items where the
340+
NOTE: This will always be either 1 (representing the group of work-items where
341+
the predicate was true) or 0 (representing the group of work-items where the
342342
predicate was false).
343343

344344
[source,c++]

0 commit comments

Comments
 (0)