IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /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. /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, Deinitable, Equatable, ImplicitlyCopyable, Movable

comptime members

block

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

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

default

comptime default = SHMEMScope(StringSpan(""))

Execute RMA operation at global scope.

warp

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

Execute RMA operation at warp scope (NVIDIA extension).

Methods

__init__

def __init__(out self, value: StringSpan[ImmStaticOrigin])

__eq__

def __eq__(self, other: Self) -> Bool

Returns:

Bool