Mojo function
mbarrier_try_wait_parity_shared
mbarrier_try_wait_parity_shared[type: AnyType](addr: UnsafePointer[type, address_space=AddressSpace(3), alignment=alignment, mut=mut, origin=origin], phase: SIMD[int32, 1], ticks: SIMD[int32, 1])
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.
Args:
- addr (
UnsafePointer[type, address_space=AddressSpace(3), alignment=alignment, mut=mut, origin=origin]
): Pointer to the shared memory barrier. - phase (
SIMD[int32, 1]
): Phase number to wait for. - ticks (
SIMD[int32, 1]
): Timeout period in nanoseconds.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!