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 function
store
def store[A: StoreAtom, T: DType, LM: TensorLayout, EM: TensorEngine, LR: TensorLayout, ER: TensorEngine](atom: A, 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], warp: Int = Int(0))
Stores the issuing threads' register tiles into a memory tile with atom.
Constraints:
can_store[A, LM, EM, LR](), and A's completion is synchronous or
a counter. store does not wait: for a counter, the caller waits
with A.Completion.wait() before it reuses the registers.
Parameters:
- A (
StoreAtom): The store atom. - T (
DType): The element type. - LM (
TensorLayout): The memory tile's layout. - EM (
TensorEngine): The memory tile's engine. - LR (
TensorLayout): Each thread's register tile layout. - ER (
TensorEngine): The register tile's engine.
Args:
- atom (
A): The atom to issue. - dst (
MutTileTensor[T, LM, Engine=EM, address_space=dst.address_space, linear_idx_type=dst.linear_idx_type]): The memory tile the issuing threads store together. - src (
ImmTileTensor[T, LR, Engine=ER, address_space=src.address_space, linear_idx_type=src.linear_idx_type]): This thread's registers. - warp (
Int): This thread's warp, for atoms whose reach depends on it.