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

NVIDIASharedMemoryBasePtr

struct NVIDIASharedMemoryBasePtr[name: StringSlice[ImmStaticOrigin] = StringSlice("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 (StringSlice[ImmStaticOrigin]): Symbolic name for the external memory allocation.
  • ​memory_alignment (Int): Byte alignment of the external memory allocation.

Implemented traits​

AnyType, ImplicitlyDeletable, SharedMemoryBasePtr

comptime members​

alignment​

comptime alignment = Int(128)

Methods​

ptr​

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

Returns:

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

Was this page helpful?