Topics

Multi-part deep dives you read in order, and standalone posts you can read in any order.

Read in order

xGeMM

Writing single-precision matrix multiplication from scratch in CUDA, one optimisation at a time, until it gets close to cuBLAS.

7 parts, about 45 minutes in total

  1. 0Why matrix multiplication matters
  2. 1Getting started with CUDA
  3. 2Global memory coalescing
  4. 3Shared memory
  5. 41D thread coarsening
  6. 52D thread coarsening
  7. 6Vectorized memory access
Matrix C being computed tile by tile from rows of A and columns of B
C = A × B, 0 of 64 tiles computed

Read in any order

Miscellaneous

Standalone posts on whatever I was learning at the time, from caches and automatic differentiation to Julia and tooling. Each one stands on its own.

cudagputensor-coresjuliatoolingc