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 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]

Returns:

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