Skip to content

kernel.cluster.id

kernel dialect

Read one coordinate of the current workgroup cluster within the dispatch cluster grid. The global workgroup coordinate in a dimension is cluster.id * cluster.size + cluster.workgroup.id.

Operation contract

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

Signature

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

Examples

%cluster = kernel.cluster.id<x> : index