Module components

Source
Expand description

Components for matrix multiplication

Modules§

as_cmma_layout
batch
Executes multiple independent global matmuls with optional broadcasting.
global
Solves full reductions by loading blocks into shared memory. Handles memory movement, bound checks, plane specialization.
stage
tile
Matrix multiplication on register- or shared-memory tiles. Optimized for fixed shapes and low-level compute strategies.

Structs§

AvailableLineSizes
Candidate line sizes supported for each tensor.
FormattedConfigError
Error that arises from invalid configurations
GlobalPartitionSize
Number of global matmul blocks computed by a single cube.
MatmulLineSizes
Line size used for each tensor in global memory accesses. Represents the number of elements processed per SIMD load/store.
MatmulProblem
Description of a matmul problem to solve, regardless of actual data
MatmulProblemSize
MatmulProblemSizeExpand
MatmulSelection
MatmulSelectionBuilder
PartitionSize
PartitionSizeExpand
Quantized
ReplaceES
StageSize
StageSizeExpand
TileSize
TileSizeExpand
TilingScheme
Complete tiling configuration for a matmul. Encodes all structural information needed to compute tiling shapes and counts.
TilingSchemeBuilder
Builder for TilingScheme. Allows step-by-step configuration.

Enums§

ComputeResources
Number of compute primitives required by some component, specified as either units or planes.
Ident
Identifier for all three tensors in a matmul
InputIdent
Identifier for the two input tensors in a matmul.
LoadingPrecomputeStrategy
MatmulAvailabilityError
A specific feature required for matmul is not available in the current runtime or hardware.
MatmulDim
Matrix dimension specifier for matmul operations.
MatmulKind
Interpretation of matrix multiplication based on input shapes.
MatmulSetupError
Errors that can occur during the setup phase of a matmul operation.
MatrixLayout
Layout of a 2D structure such as a tensor, shared memory or slice, used within any matmul kernel level
MatrixLayoutExpand
MultiRowStrategy

Traits§

MatmulPrecision
Matrix multiplication precisions.
MatmulSpec
Matrix multiplication spec definiting each element types used in the computation as well as how the arguments are passed to the kernel.

Functions§

as_cmma_layout
Maps the matmul MatrixLayout to cmma’s MatrixLayout, for use in Cmma API.

Type Aliases§

Args
EA
EI
EO
ES
InputArg
Input argument
InputRuntimeArg
Input runtime argument
InvalidConfigError
Error that arises from invalid configurations
OutputArg
Output argument
OutputRuntimeArg
Output runtime argument