Mojo function
mbarrier_arrive[type: AnyType](shared_mem: UnsafePointer[type, shared_mem.origin, address_space=AddressSpace.SHARED]) -> 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.
Parameters:
- type (
AnyType): The data type stored at the barrier location.
Args:
- shared_mem (
UnsafePointer): Pointer to the shared memory barrier.
Returns:
Int: An integer representing the current state of the memory barrier.