kernel.launch.config
← kernel dialect
Terminate a kernel launch configuration region with the computed workgroup grid, required workgroup size, and optional static workgroup-cluster size.
Operation contract
| Property |
Value |
| Semantic phase |
executable |
| Traits |
Terminator, HasParent(kernel.def) |
Signature
| Kind |
Name |
Type |
Cardinality |
Description |
| Operand |
workgroup_count_x |
index |
required |
Number of workgroups to launch in the x dimension. |
| Operand |
workgroup_count_y |
index |
required |
Number of workgroups to launch in the y dimension. |
| Operand |
workgroup_count_z |
index |
required |
Number of workgroups to launch in the z dimension. |
| Operand |
workgroup_size_x |
index |
required |
Required workgroup size in the x dimension. |
| Operand |
workgroup_size_y |
index |
required |
Required workgroup size in the y dimension. |
| Operand |
workgroup_size_z |
index |
required |
Required workgroup size in the z dimension. |
| Operand |
workgroup_cluster_size_x |
index |
optional |
Static workgroup-cluster size in the x dimension. |
| Operand |
workgroup_cluster_size_y |
index |
optional |
Static workgroup-cluster size in the y dimension. |
| Operand |
workgroup_cluster_size_z |
index |
optional |
Static workgroup-cluster size in the z dimension. |
Examples
kernel.launch.config workgroups(%gx, %gy, %gz) workgroup_size(%sx, %sy, %sz) : index
kernel.launch.config workgroups(%gx, %gy, %gz) workgroup_size(%sx, %sy, %sz) cluster_size(%cx, %cy, %cz) : index