Script.copy_async_wait_group

Script.copy_async_wait_group

Script.copy_async_wait_group(n)

Wait the completion of asynchronous copy groups.

This instruction waits for the completion of asynchronous copy groups. The n parameter specifies the maximum number of asynchronous copy groups that can be unfinished at the same time. If n is 0, it will wait until all asynchronous copy groups are finished. If n is greater than 0, it will wait until at least n asynchronous copy groups are finished, allowing up to n asynchronous copy groups to be unfinished at the same time.

Parameters:

n (Union[Expr, int]) – The maximum number of asynchronous copy groups that can be unfinished at the same time. If n is 0, it will wait until all asynchronous copy groups are finished.

Return type:

None

Notes

  • Thread group: Can be executed by any sized thread group.

  • Hardware: Requires compute capability 8.0+ (sm_80).

  • PTX: cp.async.wait_group