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_g
shmem_g[dtype: DType](source: UnsafePointer[Scalar[dtype]], pe: Int32) -> Scalar[dtype]
Copies one data item from a remote PE.
Very low latency get capability for single elements.
Args:
- source (
UnsafePointer[Scalar[dtype]]): Symmetric address of the source data object. - pe (
Int32): PE number of the remote PE on which source resides relative to the team associated with the given device context.
Returns:
Scalar[dtype]: A single element of dtype.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!