Notes on FlashMoE's Kernel Design

July 26, 2026

These are my kernel visualizations of the FlashMoE megakernel that was released: this kernel does a really clever thing in that it treats the GPU like a virtual machine: many SMs run a dedicated “processor” function, while a single SM performs all the scheduling (and network) tasks. This, coupled with a clever lock-free symmetric memory design I’m still looking into to, allows you to achieve blazing fast performance with just some CUDA and NVSHMEM!

“Teaching” Notes:

FlashMoE Kernel Design:

PDF

Open in new tab