kernel.workgroup.size
← kernel dialect
Read the selected workgroup size dimension. A launch configuration contract can make this an exact fact; otherwise target facts bound the dynamic launch value.
Operation contract
| Property |
Value |
| Semantic phase |
executable |
| Traits |
Pure, HasAncestor(kernel.def) |
Signature
| Kind |
Name |
Type |
Cardinality |
Description |
| Result |
result |
index |
required |
Workgroup size in the selected dimension. |
| Attribute |
dimension |
enum KernelDimension |
required |
Coordinate axis to read. |
Examples
%size = kernel.workgroup.size<x> : index