Parallel computing
0 of 12 steps read
Evolution
Foundations
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 videosOrigins
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· 1967Clock rates stopped rising around 2003 while core counts began to grow, so Sutter warns that programs must become concurrent to keep getting faster.
2005Task parallelism
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· 1998Data parallelism
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· 1986Auto-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· 2012GPU programming
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.
2022Synchronization
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· 1996Message passing
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· 2005Domain-specific languages
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· 2013Specialization
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· 2010In practice
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