← All topics

Parallel computing

0 of 12 steps read

Read first
Next
Evolution

Foundations

1
Stanford CS149: Parallel Computing

Multicore, SIMD and GPU hardware, then work scheduling, locality, CUDA, data-parallel thinking, cache coherence, memory consistency, lock-free code and transactional memory. In English.

Stanford· 20252023 videos

Origins

2
Validity of the Single Processor Approach to Achieving Large Scale Computing Capabilities

Parallel machines promised large speedups, but Amdahl argues the part of a program that must run serially caps them, the argument now called Amdahl's law.

IBM· 1967
Further reading
Reevaluating Amdahl's Law Sandia National Laboratories· 1988
3
The Free Lunch Is Over: A Fundamental Turn Toward Concurrency in Software

Clock rates stopped rising around 2003 while core counts began to grow, so Sutter warns that programs must become concurrent to keep getting faster.

2005

Task parallelism

4
The Implementation of the Cilk-5 Multithreaded Language

Spawning a task for each bit of parallelism costs too much, so Cilk-5 keeps a spawn within a few times the cost of a call and moves scheduling costs onto rare steals by idle workers.

MIT· 1998

Data parallelism

5
Data Parallel Algorithms

Programs walked data one element at a time, so Hillis and Steele show how sums, prefix sums and even linked-list operations take logarithmic steps with a processor per element.

Thinking Machines· 1986
Further reading
6
ispc: A SPMD Compiler for High-Performance CPU Programming

Auto-vectorizers often fail on loops with branches or function calls, so ispc compiles programs written like GPU shaders, one program instance per SIMD lane, into CPU vector instructions.

Intel· 2012
Further reading

GPU programming

7
How to Optimize a CUDA Matmul Kernel for cuBLAS-like Performance: a Worklog

A naive CUDA matrix multiply wastes most of the GPU, and this worklog closes most of the gap to cuBLAS step by step with coalescing, shared-memory tiling, register blocking and warp tiling.

2022

Synchronization

8
Simple, Fast, and Practical Non-Blocking and Blocking Concurrent Queue Algorithms

A thread holding a queue's lock can stall all the others, so the Michael-Scott queue updates head and tail with compare-and-swap and lets threads finish each other's half-done updates.

University of Rochester· 1996

Message passing

9
Optimization of Collective Communication Operations in MPICH

All-reduce and reduce took a large share of the time programs spent in MPI, so MPICH picks an algorithm by message size, recursive doubling for short messages and reduce-scatter plus all-gather for long ones.

Argonne National Laboratory· 2005
Further reading

Domain-specific languages

10
Halide: A Language and Compiler for Optimizing Parallelism, Locality, and Recomputation in Image Processing Pipelines

Fast image pipelines tangled the algorithm with hand-tuned tiling, fusion and vectorization, so Halide separates the algorithm from a schedule that sets each stage's order and storage.

MIT· 2013
Further reading

Specialization

11
Understanding Sources of Inefficiency in General-Purpose Chips

Chips had become power limited, and this H.264 study shows general-purpose cores spend most of their energy fetching instructions and data, overhead that only specialized units remove.

Stanford· 2010

In practice

12
Scalability! But at what COST?

Papers reported graph systems scaling across many cores, but a single laptop thread often beat them, so the authors propose COST: the cores a system needs to outperform one good thread.

2015