Advanced Kernel Engineering
Module 2512 lessons~16h 55m
How state-of-the-art inference kernels are built on Hopper, Blackwell and beyond: the asynchronous machinery of a modern kernel (TMA, mbarriers, WGMMA, tcgen05 and tensor memory), warp specialisation and pipelining, CUTLASS and CuTe layouts, the new kernel languages, a fast GEMM step by step, attention, low-precision, MoE and communication kernels, persistent kernels and megakernels, AMD and TPU kernels, and how to test and autotune all of them. It builds on Modules 4–6 and assumes you have read FlashAttention (13.l) and the MoE lessons (14.e, 14.g, 14.h).
Lessons#
| # | Lesson | Time |
|---|
| 25.a | Anatomy of a Modern Kernel: TMA, mbarriers, WGMMA, tcgen05 and TMEM | 90 min |
| 25.b | Warp Specialization and Software Pipelining | 80 min |
| 25.c | CUTLASS and CuTe: Layouts as Algebra | 90 min |
| 25.d | The New Kernel Languages: CuTe DSL, Triton/Gluon, TileLang, ThunderKittens | 75 min |
| 25.e | A Fast GEMM, Step by Step, on Hopper and Blackwell | 100 min |
| 25.f | Attention Kernels: FlashAttention-3/4, Decode Attention, FlashInfer, FlashMLA | 95 min |
| 25.g | Low-Precision Kernels: Block-Scaled FP8/FP4 and Mixed-Input GEMMs | 85 min |
| 25.h | MoE Kernels: Grouped GEMM, Permutation, DeepGEMM | 85 min |
| 25.i | Communication Kernels: Fused All-Reduce, DeepEP, NVSHMEM, Overlap | 85 min |
| 25.j | Persistent Kernels and Megakernels | 75 min |
| 25.k | Beyond NVIDIA: HIP, Composable Kernel/AITER, TPU Pallas | 75 min |
| 25.l | Testing, Verifying and Autotuning Kernels | 80 min |
Previous: Research and Frontier · Next: Beyond Text