Inside FlashInfer's SM100 GEMM
FlashInfer's block-scaled FP4 GEMM for Blackwell, taken apart in three parts: the tile and the instruction, the pipeline around it, and how a tactic is chosen.
All parts as one Markdown file
- October 13, 2026Inside FlashInfer's SM100 GEMM, Part 1: The Tile and the Instruction
What one tcgen05.mma computes in FlashInfer's block-scaled FP4 GEMM, how the tiles nest from that instruction up to the whole matrix, and where the scale factors go
- October 13, 2026Inside FlashInfer's SM100 GEMM, Part 2: Keeping the Tensor Cores Busy
How FlashInfer's block-scaled FP4 GEMM splits its warps into roles, passes stages and accumulators between them with mbarriers, loops persistently over output tiles, and shares loads inside a cluster
- October 13, 2026Inside FlashInfer's SM100 GEMM, Part 3: Choosing a Tactic
How mm_fp4 turns a matrix shape into a tile, a cluster and a few switches, why swapping A and B wins for small batches, how the narrow N tiles reach their scale factors, and how to time tactics without fooling yourself