Megakernel Loses to CUDA Graph + Multi-stream + PDL in Real GLM-5.2 Decode Layer Optimization on B300

青稞AI · wechat · 2026-10-09

A hands-on engineering deep-dive optimizing the GLM-5.2-FP8 decode Indexer layer on a B300 GPU: 30 short kernels taking 80us dropped to 61.6us via fusion, a custom Megakernel (MegaRTP) reached 39.6us, but a CUDA Graph + Multi-stream + PDL stack won at 36.992us.

Includes detailed analysis of Stanford Megakernels, Mirage, and TileRT — a high-quality reference for inference kernel engineering.

Original post →

More from Infra

Infra channel →