For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo function
shmem_get
def shmem_get[dtype: DType, scope: SHMEMScope = SHMEMScope.default](dest: Pointer[Scalar[dtype]], source: Pointer[Scalar[dtype]], nelems: UInt, pe: Int32)
Copies 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 the data has been delivered to the dest array on the local PE.
Args:
- βdest (
Pointer[Scalar[dtype]]): Local address of the data object to be updated. - βsource (
Pointer[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.