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 trait

SharedMemoryBasePtr

Defines a base pointer into GPU shared memory with a fixed alignment.

Implementations provide a statically-aligned pointer to shared memory that a SharedMemoryManager allocates tiles and arrays from.

Parameters: alignment: Required byte alignment of the shared memory base pointer.

Implemented traits​

AnyType

comptime members​

alignment​

comptime alignment

Required methods​

ptr​

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

Returns:

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