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