r/CUDA • • 21h ago

Advent of Kernel Optimization

20 Upvotes

Today is day one of our Advent of Kernel Optimization, covering fused-multiply add. We'll post about one GPU kernel optimization technique every weekday, you can follow along at https://streamhpc.com/blog/tag/advent2026/.


r/CUDA • • 6h ago

Open GPU kernel engineering series: naive GEMM to FlashAttention, H100 and Blackwell (44 sessions, code public)

Thumbnail youtu.be
8 Upvotes

Four sessions already live and next one is releasing soon about writing your first CUDA kernel

Roadmap (44 sessions):

- Foundations: CPU parallelism, GPU architecture, roofline, first CUDA kernels

- Memory hierarchy

- GEMM: naive kernel to optimized, profiling at every step

- Tensor cores

- Profiling and debugging

- PyTorch integration and Triton

- Attention / FlashAttention

- Hopper and Blackwell: TMA, WGMMA, CUTLASS, FP8/quantization, NVFP4, multi-GPU basics, FlashAttention 4, DeepSeek's kernels, AI-written kernels, capstone project

Prerequisites are C/C++, basic linear algebra, and PyTorch.

Caveats: it's in progress, and the later sessions (especially Blackwell/NVFP4) may change as the tooling does.


r/CUDA • • 9h ago

Shared my notes on GPU engineering for everyone

8 Upvotes

I've been putting together a collection of notes as I learn about GPU architecture and decided to share it with the community. It's organized like a book, moving through topics in a logical sequence, and it's under the MIT license. I would love any feedback on errors, clearer explanations, or even suggestions for diagrams that could help clarify the concepts.

Check it out here: https://github.com/BEFORE-GPU-ENGINEERING/BEFORE-GPU-ENGINEERING


r/CUDA • • 15h ago

Hayek — AI Inference Engine

Thumbnail reddit.com
1 Upvotes