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
StoreAtom
Describes an instruction that stores elements from registers into memory.
Implemented traits
AnyType,
Atom,
Copyable,
Deinitable,
ImplicitlyCopyable,
Movable,
RegisterPassable,
TrivialRegisterPassable
comptime members
dtype
comptime dtype
The element type the instruction moves.
Engine
comptime Engine
The engine of the memory the instruction writes.
mem_map
comptime mem_map
Where each index writes memory.
reg_map
comptime reg_map
Which register each index reads.
Required 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]) -> Self.Completion.Result
Issues the instruction once.
Parameters:
- T (
DType): The operands' element type. - LM (
TensorLayout): The memory view's layout. - EM (
TensorEngine): The memory view's engine. - LR (
TensorLayout): The register view's layout. - ER (
TensorEngine): The register view's engine.
Args:
- dst (
MutTileTensor[T, LM, Engine=EM, address_space=dst.address_space, linear_idx_type=dst.linear_idx_type]): The memorymem_mapdescribes. - src (
ImmTileTensor[T, LR, Engine=ER, address_space=src.address_space, linear_idx_type=src.linear_idx_type]): The registersreg_mapdescribes.
Returns:
_Self.Completion.Result: The instruction's handle for a HandleCompletion, else
nothing.