Skip to content

kernel.cluster.count

kernel dialect

Read the number of workgroup clusters in one dispatch dimension. This is the exact quotient of workgroup.count by cluster.size.

Operation contract

Property Value
Semantic phase executable
Traits Pure, HasAncestor(kernel.def)

Signature

Kind Name Type Cardinality Description
Result result index required Dispatched workgroup-cluster count in the selected dimension.
Attribute dimension enum KernelDimension required Coordinate axis to read.

Examples

%cluster_count = kernel.cluster.count<y> : index