Skip to main content
Log in

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.