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 struct

TMemLoad

struct TMemLoad[dt: DType, cols: Int]

tcgen05.ld.32x32b.x{cols}: a warp loads its TMEM quadrant's cols columns, each thread its own lane.

Parameters​

  • ​dt (DType): A 4-byte element type.
  • ​cols (Int): The columns one issue moves, a power of two up to 64.

Implemented traits​

AnyType, Atom, Copyable, Deinitable, ImplicitlyCopyable, LoadAtom, Movable, RegisterPassable, TrivialRegisterPassable

comptime members​

Completion​

comptime Completion = TMemLoadWait

tcgen05.wait::ld waits for the thread's TMEM loads.

dtype​

comptime dtype = dt

The element type the instruction moves.

Engine​

comptime Engine = TMemEngine

The engine of the memory the instruction reads.

mem_map​

comptime mem_map = tmem_32x32b_map(cols)

Where each index reads memory.

reg_map​

comptime reg_map = registers_map(cols, Int(32))

Which register each index writes.

shape​

comptime shape = ParameterList()

The instruction's shape, such as (32, 16) for tcgen05.ld.32x32b.x16 or (m, n, k) for an MMA.

shape_values​

comptime shape_values = Int(32), cols

One issue covers 32 lanes by cols columns.

Methods​

__call__​

def __call__[T: DType, LR: TensorLayout, ER: TensorEngine, LM: TensorLayout, EM: TensorEngine](self, dst: MutTileTensor[T, LR, Engine=ER, address_space=dst.address_space, linear_idx_type=dst.linear_idx_type], src: ImmTileTensor[T, LM, Engine=EM, address_space=src.address_space, linear_idx_type=src.linear_idx_type])

Issues the load without waiting for it; TMemLoadWait waits.

Parameters:

Args:

Was this page helpful?