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: Nightly
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).

async_copy_arrive

async_copy_arrive[type: AnyType, address_space: AddressSpace, *, noinc: Bool = False](address: UnsafePointer[type, address_space=address_space])

Makes a memory barrier track all prior async copy operations from this thread.

This function ensures that all previously initiated asynchronous copy operations from the executing thread are tracked by the memory barrier at the specified location. Only supported on NVIDIA GPUs.

When noinc is True, the increment to the pending count of the mbarrier object is not performed. The decrement of the pending count done by the asynchronous arrive-on operation must be accounted for in the initialization of the mbarrier object.

Parameters:

  • type (AnyType): The data type stored at the barrier location.
  • address_space (AddressSpace): The memory address space where the barrier is located.
  • noinc (Bool): If True, do not increment the pending count. Defaults to False.

Args: