Notes

PX457: High Performance Computing

“A computer lets you make more mistakes faster than any invention in human history—with the possible exceptions of handguns and tequila”

Mitch Ratcliff

How can we compute a scientifically useful answer sooner without losing its meaning? PX457 follows this question from rounded arithmetic and processor pipelines to distributed arrays, GPU kernels and automatic differentiation.

The order below follows the original course index. The first three sources are labelled Weeks 1–3; later notes are organised by topic rather than assigned invented week numbers. Every substantive source has been revised as a cumulative chapter. Examples are teaching models unless explicitly identified as measurements.

Foundations: numbers, instructions and data

  1. Introduction to high-performance computing: accuracy, rates, hardware scaling and energy.
  2. Introduction to optimisation: latency, throughput, dependency chains and numerical trade-offs.
  3. Memory architecture: cache mapping, locality, array layout and parallel hardware models.

Shared memory: OpenMP

  1. Parallel regions and work sharing: creating workers versus partitioning work.
  2. Variables and synchronisation: storage ownership, races, barriers and reductions.
  3. Loop scheduling and load balancing: the longest load, runtime queues and functional parallelism.
  4. Dependences and nested parallelism: transformations that preserve values, legal relaxation and resource limits.

Distributed memory: MPI

  1. Introduction: separate process state, communicator-local ranks and lifecycle.
  2. Point-to-point communication: matching, completion and deadlock.
  3. Collective communications: replication, concatenation, combination and collective order.
  4. Communicators and Cartesian topologies: context, geometry, halo traffic and collective cost models.
  5. Nonblocking communication and hybrid programs: overlap, buffer lifetimes and MPI/OpenMP composition.

Measuring and accelerating

  1. Performance metrics: speedup, Amdahl, isoefficiency and Karp–Flatt with explicit assumptions.
  2. CUDA: GPU ownership, grid-stride loops, memory and synchronisation.
  3. Higher abstractions and automatic differentiation: libraries, computational graphs and complete forward/reverse derivations.