For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo function
mbarrier_try_wait_parity_shared
def mbarrier_try_wait_parity_shared[type: AnyType](addr: Pointer[type, address_space=AddressSpace.SHARED], phase: Int32, ticks: Int32)
Wait for completion of a barrier phase with timeout.
Waits for the shared memory barrier to complete the specified phase, or until the timeout period expires. Only supported on NVIDIA GPUs.
Parameters:
- βtype (
AnyType): The type of the memory barrier.
Args:
- βaddr (
Pointer[type, address_space=AddressSpace.SHARED]): Pointer to the shared memory barrier. - βphase (
Int32): Phase number to wait for. - βticks (
Int32): Timeout period in nanoseconds.