BMM InstanceNorm Sum ResidualAdd Multiply
4 eligible runs
gemm
KernelBench level2 problem 28: BMM InstanceNorm Sum ResidualAdd Multiply. 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
2.79ms±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
HardwareBest knownImplementationRuns
NVIDIA H100 · env 12.79 msPyTorch eager2NVIDIA H100 · env 24.86 mstorch.compile (inductor)2Not measured on B200 for this workload. Challenges →
Source-native comparison · GPU NVIDIA H100 · Workload batch_size = 1024 · in_features = 8192 · out_features = 8192 · fp32 · Protocol KernelBench timing scripts · mean · 2 results · last observed 2026-03-05Record history →
Estimated floor 34.7 µs · record 80.39× above itestimate, not evidence ›
DRAM 20.0 µs · compute 34.7 µs · compute-bound on H100 SXM
every declared tensor crosses HBM exactly once (3,350 GB/s, H100 SXM datasheet)
2·M·N·K with M=1024, N=1024, K=8192 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
12.79ms±0.001.00×Reported · MIT · source2026-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 →
2torch.compile (inductor)PyTorch2.82ms±0.001.01×Reported · MIT · source2026-03-05stale
1.01× 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
Semantics
Inputs and outputs
input_1fp32 [batch_size, in_features]
input_2fp32 [batch_size, out_features]
outfloat [out]
Axes and behavior
outvariable
batch_sizevariable
in_featuresvariable
out_featuresvariable
determinismunspecified
constraintsNo mutation or aliasing
Identity
sha256042cbedf49d1…
Sources: KernelBench baseline timings (2026-03-05) · MITlast observed 2026-03-05How records are decidedJSON