Skip to content

Commit 067536e

Browse files
authored
[SYCL][Doc] Clarify reqd_sub_group_size (#2103)
The value passed to the reqd_sub_group_size attribute must be a compile-time integral constant expression. Signed-off-by: John Pennycook <[email protected]>
1 parent c93fa93 commit 067536e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sycl/doc/extensions/SubGroup/SYCL_INTEL_sub_group.asciidoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Providing a generic group abstraction encapsulating the shared functionality of
6868

6969
=== Attributes
7070

71-
The +[[intel::reqd_sub_group_size(n)]]+ attribute indicates that the kernel must be compiled and executed with a sub-group of size _n_. The value of _n_ must be set to a sub-group size that is both supported by the device and compatible with all language features used by the kernel, or device compilation will fail. The set of valid sub-group sizes can be queried as described below.
71+
The +[[intel::reqd_sub_group_size(n)]]+ attribute indicates that the kernel must be compiled and executed with a sub-group of size _n_. The value of _n_ must be a compile-time integral constant expression. The value of _n_ must be set to a sub-group size that is both supported by the device and compatible with all language features used by the kernel, or device compilation will fail. The set of valid sub-group sizes can be queried as described below.
7272

7373
In addition to device functions, the required sub-group size attribute may also be specified in the definition of a named functor object, as in the example below:
7474

@@ -314,6 +314,7 @@ Yes, the four shuffles in this extension are a defining feature of sub-groups.
314314
|4|2020-04-21|John Pennycook|*Restore missing barrier function*
315315
|5|2020-04-21|John Pennycook|*Restore sub-group shuffles as member functions*
316316
|6|2020-04-22|John Pennycook|*Align with SYCL_INTEL_device_specific_kernel_queries*
317+
|7|2020-07-13|John Pennycook|*Clarify that reqd_sub_group_size must be a compile-time constant*
317318
|========================================
318319
319320
//************************************************************************

0 commit comments

Comments
 (0)