Skip to content

kernel.subgroup.count

kernel dialect

Read the number of subgroups in the current workgroup.

Operation contract

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

Signature

Kind Name Type Cardinality Description
Result result index required Subgroup count in the workgroup.

Examples

%count = kernel.subgroup.count : index