A primer on GPUs and kernel optimization

nomi_uw 191 points 26 comments November 05, 2026
www.nabo.dev · View on Hacker News

Discussion Highlights (4 comments)

augment_me

Crazy to not see a word about benchmarking/evaluation of the kernels. IMO at this time when all performant GPU kernels are generated/hill-climbed, its the largest source of error we see. Should be kernel run with a hot or cold cache in practice? Should your kernel be bitwise equivalent to a ref? What error margins should your kernel have to ref? How many times are you running the kernel to avoid thermal noise? Are you running on separate GPUs to avoid overfitting the current hardware? Can you cudagraph-compiling your kernel to remove launch overhead? Are you A/B B/A interleaving your kernel/reference runs to avoid running thermal bias?

kollegekid

The writing here is so clear. Do you use Llms to write?

saagarjha

> On the H200s used for most of this work, the GPU's main memory is HBM, or high-bandwidth memory. Ironically, this is the slowest memory on the chip. Nit: HBM is off chip, unlike shared memory and registers

brcmthrowaway

Someone needs to write a book on this

Semantic search powered by Rivestack pgvector
3,874 stories · 35,194 chunks indexed