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_p
shmem_p[dtype: DType](dest: UnsafePointer[Scalar[dtype], MutAnyOrigin], value: Scalar[dtype], pe: Int32)
Copies one data item to a remote PE.
Very low latency put capability for single elements. As with shmem_put, these routines start the remote transfer and may return before the data is delivered to the remote PE. Use shmem_quiet to force completion of all remote Put transfers.
Args:
- โdest (
UnsafePointer[Scalar[dtype], MutAnyOrigin]): Symmetric address of the destination data object. - โvalue (
Scalar[dtype]): The value to be transferred to dest. - โ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!