Skip to content
KernelIndex
Search⌘K

Matmul with large K dimension

4 eligible runs
gemm

KernelBench level1 problem 6: Matmul with large K dimension. The computation is the reference PyTorch module's forward pass; the output shape follows the module (mirrored as each implementation's source).

Source baseline · unbeaten
1.30ms±0.00 · mean of 100
PyTorch eagerPyTorch · MIT · python

Reported evidence · last observed 2026-03-05. The source's designated baseline implementation. Reported by source; not independently reproduced.

Current records

Not measured on B200 for this workload. Challenges →

Source-native comparison · GPU NVIDIA H100 · Workload k = 524288 · m = 256 · n = 256 · fp32 · Protocol KernelBench timing scripts · mean · 2 results · last observed 2026-03-05Record history →
Estimated floor 320.5 µs · record 4.06× above itestimate, not evidence ›
DRAM 320.5 µs · compute 138.8 µs · bandwidth-bound on H100 SXM
every declared tensor crosses HBM exactly once (3,350 GB/s, H100 SXM datasheet)
2·M·N·K with M=256, N=256, K=524288 at the dense tf32 peak (495 TFLOP/s)
headroom-v1: a lower bound from declared tensors and datasheet peaks. A kernel can sit well above it for good reasons.
#
Implementation
Latency
vs #1
Trust
Observed
1
PyTorch eagerbaselinePyTorch
1.30ms±0.00
1.00×
Reported · MIT · source
2026-03-05stale

Measured exactly what you asked. The source's designated baseline implementation. Reported by source; not independently reproduced.

source mirroredMITno install recipeView source →Run detail →
2
1.38ms±0.01
1.06×
Reported · MIT · source
2026-03-05stale

1.06× slower than the baseline. Measured exactly what you asked. Reported by source; not independently reproduced.

source mirroredMITno install recipeView source →Run detail →

Implementations

Implementation
Runtime
Best latency
Evidence
Availability
python · torch_eager
1.30ms
1.00×
Reported
MIT · source
python · torch_compile_inductor
1.38ms
1.06×
Reported
MIT · source

Semantics

Inputs and outputs
afp32 [m, k]
bfp32 [k, n]
outfloat [out]
Axes and behavior
kvariable
mvariable
nvariable
outvariable
determinismunspecified
constraintsNo mutation or aliasing
Identity
sha256082888db5d0c…
Sources: KernelBench baseline timings (2026-03-05) · MITlast observed 2026-03-05How records are decidedJSON