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_g
def shmem_g[dtype: DType](source: Pointer[Scalar[dtype]], pe: Int32) -> Scalar[dtype]
Copies one data item from a remote PE.
Very low latency get capability for single elements.
Args:
- source (
Pointer[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.