IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).

Mojo function

shmem_get_nbi

shmem_get_nbi[dtype: DType, scope: SHMEMScope = SHMEMScope.default](dest: UnsafePointer[Scalar[dtype]], source: UnsafePointer[Scalar[dtype]], nelems: UInt, pe: Int32)

Initiate a non-blocking copy of data from a specified PE.

The get routines provide a method for copying a contiguous symmetric data object from a remote PE to a contiguous data object on the local PE. The routines return after initiating the operation. The operation is considered complete after a subsequent call to shmem_quiet. At the completion of shmem_quiet, the data has been delivered to the dest array on the local PE.

Args:

  • ​dest (UnsafePointer[Scalar[dtype]]): Local address of the data object to be updated.
  • ​source (UnsafePointer[Scalar[dtype]]): Symmetric address of the source data object.
  • ​nelems (UInt): Number of elements in the dest and source arrays.
  • ​pe (Int32): PE number of the remote PE relative to the team associated with the device.