# GPU Programming

Author: Ishwar Jangid
Canonical URL: https://ishwarj.com/books/gpu-programming/
Updated: 2026-10-11
Source: https://github.com/ishwar6/ishwar-books/blob/main/content/books/gpu-programming/index.md


A GPU kernel is fast when it keeps the machine's *bottleneck resource* busy. There are only a handful of candidates (memory bandwidth, memory latency, compute throughput, instruction issue, synchronisation, launch overhead and interconnect), and this book teaches you to identify which one you are fighting and what to do about it.

Every chapter ends with the kind of interview questions asked for kernel and performance roles, with answers.

> [!NOTE] Part I is published
> Chapters 1 to 5 (Foundations) are available now: CPU parallelism, why GPUs exist, the hardware, the programming model and the toolchain. Later parts are being edited and will appear here as they are ready.

## Running the code

Chapter 1 runs on any laptop CPU. From Chapter 2 on you need an NVIDIA GPU; a free Google Colab T4 is enough. The code lives in [`code/gpu`](https://github.com/ishwar6/ishwar-books/tree/main/code/gpu) in this site's repository.

