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

NVIDIASharedMemoryBasePtr

struct NVIDIASharedMemoryBasePtr[name: StringSpan[ImmStaticOrigin] = StringSpan("extern_ptr_syml"), memory_alignment: Int = Int(8)]

NVIDIA implementation of SharedMemoryBasePtr using external memory.

Exposes a shared memory base pointer backed by NVIDIA's external_memory intrinsic, parameterized by a symbolic name and alignment.

Parameters

  • name (StringSpan[ImmStaticOrigin]): Symbolic name for the external memory allocation.
  • memory_alignment (Int): Byte alignment of the external memory allocation.

Implemented traits

AnyType, Deinitable, Movable, SharedMemoryBasePtr

comptime members

alignment

comptime alignment = Int(128)

Methods

ptr

static def ptr() -> Pointer[Int8, MutUntrackedOrigin, address_space=AddressSpace.SHARED]

Returns:

Pointer[Int8, MutUntrackedOrigin, address_space=AddressSpace.SHARED]