IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /docs/manual/basics.md). For the complete Mojo documentation index, see llms.txt.
Skip to main content
Version: 1.0.0b1
For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).

mbarrier_arrive

mbarrier_arrive[type: AnyType](shared_mem: UnsafePointer[type, 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:

Returns:

Int: An integer representing the current state of the memory barrier.