kernel.async.wait
← kernel dialect
Wait until a committed async-copy group has completed. This completes the named group and all older groups in the same ordered async stream. The required newer_groups value states how many younger groups are allowed to remain outstanding after the wait, matching AMDGPU wait.asyncmark and NVVM wait_group count semantics without making lowering rediscover the software-pipeline distance from scratch. It is not a workgroup barrier; use kernel.barrier separately when other invocations must observe the copied destination data.
Operation contract
| Property |
Value |
| Semantic phase |
— |
| Traits |
UnknownEffects |
| Target contracts |
kernel.async |
Signature
| Kind |
Name |
Type |
Cardinality |
Description |
| Operand |
group |
any |
required |
Async group token to wait. |
| Attribute |
newer_groups |
i64 |
required |
Maximum number of younger async groups allowed to remain outstanding. |
Examples
kernel.async.wait %group {newer_groups = 0} : kernel.async.group