GPU veteran: mega kernels only win at batch-1 inference, CUDA graphs still reign

mike64_t · x · 2026-11-11

A technical take on GPU kernel engineering: for specific workloads like batch size 1 inference, mega kernels (fusing everything into one kernel) are likely optimal since any graph involvement hurts; but this does not generalize — it stops being true at larger scales and especially training.

The author pushes back on the community extrapolating "mega kernels win here" into "a mega kernel would be faster for any workload." The conservative default: hardware kernel-scheduling acceleration exists, and not using it — or using it at the wrong granularity — is what costs you. In practice, CUDA graphs with co-designed kernels remain the superior programming paradigm.

Related event: Megakernel Route Sparks Heated Debate in CUDA Community(6 posts)→

Original post →

More from Infra

Infra channel →