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 package
layout
Provides layout and layout tensor types, which abstract memory layout for multidimensional data.
-
The
Layouttype represents a mapping between a set of logical coordinates and a linear index. It can be used, for example, to map logical tensor coordinates to a memory address, or to map GPU threads to tiles of data. -
The
LayoutTensortype is a high-performance tensor with explicit memory layout via aLayout.
Modulesβ
- β
coord: Subpackage exposingstd.utils.coordaslayout.coordfor kernel imports. - β
copy: Provides copy policy traits and utilities for layout memory operations. - β
element: Provides element-based access to memory using layout-driven vectorization. - β
int_tuple: Hierarchical integer tuple data structures for high-performance tensor operations. - β
layout: Provides a high-performance tensor layout system for memory mapping and indexing. - β
layout_tensor: Provides theLayoutTensortype for representing multidimensional data. - β
math: Implements math methods that work on layout tensors. - β
runtime_layout: Provides theRuntimeLayouttype and functions for working with it. You can useRuntimeLayoutto define a layout where the dimensions are not known at compile time. - β
runtime_tuple: Provides theRuntimeTupledata structure and related utility functions for handling tuple-like data with both compile-time and runtime elements.RuntimeTupleis designed for high-performance tensor operations, supporting efficient manipulation of multi-dimensional data structures like shapes, indices, and coordinates. - β
swizzle: Defines swizzle layouts for optimizing memory access patterns. - β
tensor_core: Tensor Core Module for High-Performance Matrix Operations. - β
tensor_core_async: Tensor Core Async Module. - β
tensor_storage: Defines storage abstractions for tile-backed tensor views. - β
tile_io: Trait and utilities for copying data betweenTileTensors. - β
tile_layout: Provides a mixed compile-time/runtime layout system for tensor memory mapping. - β
tile_tensor: TileTensor type for structured memory access with compile-time layout information. - β
tma_async: Tensor Memory Accelerator (TMA) Asynchronous Operations Module.