← All Series

SERIES // GPU PROGRAMMING · 3 PHASES · 6 DEEP DIVES · COMPLETE

Silicon to Scale.

Six articles, one repeating idea: keep the expensive resource busy by hiding the latency of the slower level below it. Start from the silicon — SIMT, warps, the memory hierarchy. Learn the rules the hardware rewards — coalescing, shared memory, occupancy. Get a repeatable optimization method — the Roofline model and the modern toolchain (Nsight, CUTLASS, TensorRT, Triton, Helion). Then scale out — multi-GPU model parallelism with Megatron-LM, and the whole datacenter (scheduling, virtualization, multi-tenancy). Plain language, deep technical detail, grounded in the canonical books, NVIDIA/AMD whitepapers, and the research literature.

6 deep dives
~29k words
3 phases
3 / 3 phases complete


Phase 1

Architecture — how the machine works

The GPU from the silicon up: why it's a throughput machine, not a fast CPU, and the rules that machine rewards — warps, the SM, the memory hierarchy, coalescing, shared memory, and occupancy.


Phase 2

Optimization — a repeatable method

Stop guessing. Diagnose the bottleneck with the Roofline model, match it to a technique family, and use the modern toolchain to measure what's slow and write fast kernels without raw PTX.


Phase 3

Scale — many GPUs, a whole datacenter

Past one GPU, communication is the bottleneck. Map parallelism to the interconnect, train trillion-parameter models with Megatron-LM, and keep a fleet of the most expensive compute on earth from sitting half-idle.


THE ONE IDEA, AT SIX SCALES

  • Warp scheduling hides HBM latency behind other warps.
  • Occupancy & coalescing keep the ALUs fed from memory.
  • Fusion raises arithmetic intensity so you move fewer bytes per FLOP.
  • Comm/compute overlap hides interconnect latency at cluster scale.
  • Topology-aware scheduling & sharing keep the whole fleet busy.
  • One principle — hide latency, pack the resource — from 32 threads to 32,000 GPUs.