Roadmap / Kernels

The split-k reduce

matmul split-k reduce, the sum of the partial products of a split GEMM (TorchLean.Tensor.sum)

Area
Kernels
Kind
kernel
Level
L0 (card written). Next: L1 needs a recorded GPU run (a conformance test, not a proof).
Evidence present above the level
None above the level.
Reference
modular/modular@bbc13a71:max/kernels/src/linalg/matmul/gpu/__init__.mojo:2160
Quote
def split_k_reduce(
Lean declarations
  • TorchLean.Tensor.sum
Corpus files

12 kernel files (.ll) in the corpus.

Tests
  • MojoProofTest.Corpus
Upstream issue
None filed.
Depends on
gpu-model/launch, floats/binary-op-rounding

The rule. Each output cell is the sum, over the k splits, of the splits' partial results at that cell.

What is in the code. 12 corpus specializations (2 splits, widths 4, 8 and 16). The 8 at widths 4 and 8 import; the 4 at width 16 are refused at an inline asm float8 conversion (tests/corpus/REFUSALS.tsv).

Open. Every level above L0.