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

PointerStore

struct PointerStore[dt: DType, width: Int, align: Int = Int((mul size_of[dt](), width))]

A vector store of width registers into contiguous elements.

Parameters​

  • ​dt (DType): The element type.
  • ​width (Int): The elements one store moves, a power of two.
  • ​align (Int): The bytes of alignment the access claims.

Implemented traits​

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

comptime members​

Completion​

comptime Completion = Synchronous

Ready when the call returns.

dtype​

comptime dtype = dt

The element type the instruction moves.

Engine​

comptime Engine = DefaultEngine

The engine of the memory the instruction writes.

mem_map​

comptime mem_map = vector_map(width, size_of[dt]())

Where each index writes memory.

reg_map​

comptime reg_map = registers_map(width, Int(1))

Which register each index reads.

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 = width

One issue moves width elements.

Methods​

__call__​

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

Issues the store.

Parameters:

Args:

Was this page helpful?