CUDA kernel worklogs for understanding inference performance ( | GEMV)
A slowly growing book about reasoning through CUDA kernels from first principles.
I am learning how to make model inference faster by starting at the lowest level I can reasonably reach: individual CUDA kernels.
This book is a slowly growing compilation of those worklogs. For now, its scope is deliberately narrow. We write one kernel, count its computation and memory traffic, inspect how its threads use the GPU, and then improve it one bottleneck at a time.
This is not meant to be a broad guide to every layer of model scaling. There is no large roadmap that I am promising to fill in. I will add a chapter when I have learned enough to explain the problem honestly and work through an implementation.
Every chapter follows roughly the same loop:
The intermediate versions stay in the chapter. The point is not only to arrive at fast code, but to make the reasoning that led there reusable.