Day 4 of Advent of Kernel Optimization: index a small array with a runtime value and it can spill from registers to memory.
Erwin Terpstra on why: https://streamhpc.com/blog/2026-12-04/aoko-4-the-pitfalls-of-runtime-indices/

Day 4 of Advent of Kernel Optimization: index a small array with a runtime value and it can spill from registers to memory.
Erwin Terpstra on why: https://streamhpc.com/blog/2026-12-04/aoko-4-the-pitfalls-of-runtime-indices/
Day 3 of Advent of Kernel Optimization: inlining and loop unrolling are classic CPU wins.
On a GPU, register count and occupancy change the picture by Chris Tsiaousis.
https://streamhpc.com/blog/2026-12-03/aoko-3-unrolling-and-inlining/
Day 2 of Advent of Kernel Optimization: signed or unsigned for your loop counter? It's not just style; it changes what the compiler can optimize. Written by Erwin Terpstra.
https://streamhpc.com/blog/2026-12-02/aoko-2-signed-vs-unsigned-loop-counters/
Day 1 of Advent of Kernel Optimization: FMA.
More precision and throughput in one instruction, what NVCC and amdclang++ do by default, and how your code can block it, by Nol Moonen:
https://streamhpc.com/blog/2026-12-01/aoko-1-fma/
#CUDA #HIP #GPUProgramming #HPC #AdventOfKernelOptimization
Starting tomorrow: Advent of Kernel Optimization 🎄
18 GPU kernel tricks, one every weekday until Christmas, from FMA and bank conflicts to memory coalescing.
https://streamhpc.com/blog/2026-11-30/advent-of-kernel-optimization/
393 ms per 1280×720 frame on a budget laptop GPU. 30 fps needs ~33 ms.
In Part 2 of our Vulkan CNN tutorial series, Erwin starts closing the gap.
https://streamhpc.com/blog/2026-11-12/optimizing-convolution-kernels-cnns-in-vulkan-part-2-3/