IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
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 struct

SHMEMScope

struct SHMEMScope

Enables following the OpenSHMEM spec by default for put/get/iput/iget etc. While allowing NVIDIA extensions for block and warp scopes by passing a parameter.

Fields​

  • ​value (StaticString):

Implemented traits​

AnyType, Copyable, Equatable, ImplicitlyCopyable, ImplicitlyDestructible, Movable

comptime members​

block​

comptime block = SHMEMScope(StringSlice("_block"))

Execute RMA operation at thread block scope (NVIDIA extension).

default​

comptime default = SHMEMScope(StringSlice(""))

Execute RMA operation at global scope.

warp​

comptime warp = SHMEMScope(StringSlice("_warp"))

Execute RMA operation at warp scope (NVIDIA extension).

Methods​

__init__​

__init__(out self, value: StringSlice[StaticConstantOrigin])

__eq__​

__eq__(self, other: Self) -> Bool

Returns:

Bool