You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The data that is returned for this work item is the value of _data_ for the work item identified by _sub_group_local_id_.
702
702
703
703
_sub_group_local_id_ need not be the same value for all work items in the sub-group.
704
-
There is no defined behavior for out-of-range _sub_group_local_ids_.
704
+
The return value is undefined for out-of-range _sub_group_local_ids_.
705
705
706
706
|[source,c]
707
707
----
@@ -721,7 +721,7 @@ If the shuffle index is less than the max_sub_group_size, the result of this bui
721
721
If the shuffle index is greater than or equal to the max_sub_group_size but less than twice the max_sub_group_size, the result of this built-in function is the value of the _next_ data source for the work item with sub_group_local_id equal to the shuffle index minus the max_sub_group_size.
722
722
723
723
All other values of the shuffle index are considered to be out-of-range.
724
-
There is no defined behavior for out-of-range indices.
724
+
The return value is undefined for out-of-range indices.
725
725
726
726
_delta_ need not be the same value for all work items in the sub-group.
727
727
@@ -743,7 +743,7 @@ If the shuffle index is greater than or equal to zero and less than the max_sub_
743
743
If the shuffle index is less than zero but greater than or equal to the negative max_sub_group_size, the result of this built-in function is the value of the previous data source for the work item with sub_group_local_id equal to the shuffle index plus the max_sub_group_size.
744
744
745
745
All other values of the shuffle index are considered to be out-of-range.
746
-
There is no defined behavior for out-of-range indices.
746
+
The return value is undefined for out-of-range indices.
747
747
748
748
_delta_ need not be the same value for all work items in the sub-group.
749
749
@@ -759,7 +759,7 @@ The data that is returned for this work item is the value of _data_ for the work
759
759
If the result of the XOR is greater than max_sub_group_size then it is considered out-of-range.
760
760
761
761
_value_ need not be the same for all work items in the sub-group.
762
-
There is no defined behavior for out-of-range indices.
762
+
The return value is undefined for out-of-range indices.
763
763
764
764
|====
765
765
--
@@ -951,6 +951,7 @@ None.
951
951
|6|2018-12-02|Ben Ashbaugh|Added back a section that was inadvertently removed during conversion to asciidoc.
952
952
|7|2019-01-15|Ben Ashbaugh|Fixed a typo in the summary section of new built-in functions.
953
953
|8|2019-09-17|Ben Ashbaugh|Added vec3 types for shuffles, restriction for block reads and writes and partial sub-groups, and asciidoctor formatting fixes.
954
+
|9|2025-06-03|Ben Ashbaugh|Clarified that the return value is undefined for out-of-range shuffle indices, not that behavior is undefined.
0 commit comments