kernel.cluster.workgroup.id
← kernel dialect
Read one coordinate of the current workgroup within its workgroup cluster. The coordinate is zero for an ordinary non-clustered launch.
Operation contract
| Property |
Value |
| Semantic phase |
executable |
| Traits |
Pure, HasAncestor(kernel.def) |
Signature
| Kind |
Name |
Type |
Cardinality |
Description |
| Result |
result |
index |
required |
Current workgroup coordinate within its cluster. |
| Attribute |
dimension |
enum KernelDimension |
required |
Coordinate axis to read. |
Examples
%local_cluster_id = kernel.cluster.workgroup.id<y> : index