Skip to content

kernel.workgroup.count

kernel dialect

Read the dispatched workgroup count in one grid dimension.

Operation contract

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

Signature

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

Examples

%count = kernel.workgroup.count<x> : index