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β
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]
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!