Mojo function
mbarrier_arrive
mbarrier_arrive[type: AnyType](shared_mem: UnsafePointer[type, address_space=AddressSpace(3), alignment=alignment, mut=mut, origin=origin]) -> Int
Signal thread arrival at a shared memory barrier.
Records that the calling thread has reached the barrier synchronization point. Only supported on NVIDIA GPUs.
Args:
- shared_mem (
UnsafePointer[type, address_space=AddressSpace(3), alignment=alignment, mut=mut, origin=origin]
): Pointer to the shared memory barrier.
Returns:
An integer representing the current state of the memory barrier.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!