helion.language.wait#
- helion.language.wait(signal_pad, index=None, signal=1, update=None, scope='gpu', hasSubsequentMemAccess=True)[source]#
Wait for global memory barriers.
Spins on global memory barriers until the signal values is observed on all barriers.
- Parameters:
signal_pad (
Tensor|StackTensor) – Tensor of global memory barriers to wait onindex (
list[object] |None) – Indices to index into the signal_pad tensorsignal (
int) – the value to wait forupdate (
int|None) – Atomically update the signal_pad tensor with this value once the signal is observed. (default: None)scope (
str) – The scope of the lock (default: ‘gpu’)hasSubsequentMemAccess (
bool) – Whether the wait is followed by a subsequence memory access (default: True)
- Return type:
- Returns:
None