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
TMemStorage
struct TMemStorage[mut: Bool, //, dtype: DType, origin: Origin[mut=mut]]
Encoded TMEM address: lane in the upper 16 bits, column in the lower.
The hardware address is untyped; dtype and origin type the view the
way Pointer's parameters do. TMEM is not one of Mojo's AddressSpace
values, so the handle carries none.
Parameters
- mut (
Bool): The mutability of the viewed storage, inferred fromorigin. - dtype (
DType): The element data type the tile views the cells as. - origin (
Origin[mut=mut]): The origin tracking the lifetime of the allocation.
Fields
- addr (
UInt32): The encoded TMEM address of the first element.
Implemented traits
AnyType,
Copyable,
Deinitable,
ImplicitlyCopyable,
Movable,
RegisterPassable,
TrivialRegisterPassable
Methods
__init__
def __init__(addr: UInt32) -> Self
Wraps a raw TMEM address as produced by tcgen05_alloc.
Args:
- addr (
UInt32): The encoded TMEM address.