Skip to content

kernel.cluster.workgroup.flat_id

kernel dialect

Read the row-major flat coordinate of the current workgroup within its workgroup cluster, with x as the minor dimension.

Operation contract

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

Signature

Kind Name Type Cardinality Description
Result result index required Flat current-workgroup coordinate within its cluster.

Examples

%local_cluster_rank = kernel.cluster.workgroup.flat_id : index