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
shmem_get[dtype: DType, scope: SHMEMScope = SHMEMScope.default](dest: UnsafePointer[Scalar[dtype]], source: UnsafePointer[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 (
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.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!