Parallel: Why GPUs Won

Timeline, 1822–2026
  1. 1822◆Babbage proposes the Difference Engine
  2. 1843◆Lovelace publishes the first program, for the Analytical Engine
  3. 1936◆Turing: a machine that can imitate any other
  4. 1937Shannon: relay circuits do Boolean logic
  5. 1941◆Zuse’s Z3, a programmable relay computer
  6. 1943McCulloch and Pitts: a neuron as a switch
  7. 1946ENIAC: 17,468 tubes, 150 kW
  8. 1947The transistor, Bell Labs
  9. 1958Rosenblatt’s perceptron
  10. 1959The MOSFET (Atalla and Kahng) and the planar chip
  11. 1965Moore’s observation
  12. 1969Minsky and Papert’s Perceptrons
  13. 1971◆Intel 4004, made for Busicom of Japan
  14. 1974Dennard’s scaling rules
  15. 1976Cray-1
  16. 1986Backpropagation popularised
  17. 1989LeCun’s convolutional network reads zip codes
  18. 1997◆LSTM (Hochreiter and Schmidhuber)
  19. ~2005Dennard scaling ends; clock speeds stall
  20. 2007CUDA lets GPUs run general code
  21. 2009ImageNet
  22. 2011◆K computer tops the TOP500
  23. 2012◆AlexNet, trained on two gaming GPUs
  24. 2017“Attention Is All You Need”
  25. 2020Scaling laws; GPT-3; Fugaku tops the TOP500
  26. 2022Chinchilla; H100; ChatGPT
  27. 2024100,000-GPU clusters; a 1,500 MW data-centre load drops off the Virginia grid
  28. 2025◆IEA: data centres used 415 TWh in 2024

In brief. Why GPUs won: multiplying is cheap and fetching numbers is expensive, so the chips that reuse each number many times do the most work per joule.

The surprise. An H100 can do 989 trillion 16-bit operations a second but read only 3.35 trillion bytes, a ratio of about 295.

Lift the cooler off an Nvidia H100 and you find a slab of silicon of 814 mm² (about the largest a factory can print), with stacks of memory chips pressed up against its sides. Almost everything it does for a neural network is multiply numbers and add up the results. That sounds like a job for the fastest possible multiplier, but it is not. Multiplying is cheap; fetching the numbers is expensive. The machines that won AI are the ones arranged to fetch each number once and use it many times.

The Price of a Flip ended with a chip that has more transistors than it can power at once, and the essay with Amdahl’s rule that many workers help only if the job can be split. This page follows the split.

  1. 1A layer is a matrix multiply
  2. 2The roof and the slope
  3. 3Passing numbers hand to hand
  4. 4Thousands of threads
  5. 5Fewer bits
  6. 6The cost of distance
  7. 7More than one chip
  8. 8Why GPUs won
  9. Final words

1A layer is a matrix multiply

One neuron multiplies each of its inputs by a weight and adds the results, a dot product. A layer is many neurons reading the same inputs, and a batch is many inputs going through the same layer. Put the inputs in rows and the weights in columns and the whole calculation is one matrix multiply: every output is one row times one column.

Model A 4 × 4 example with small whole numbers; the systolic array further down multiplies the same two matrices. The counts in the readout are for the matrix size you choose on the rail: 2n³ operations (a multiply and an add for each of n³ pairs) against three n × n matrices of 16-bit numbers, 2 bytes each.

The count hides the most important fact on this page. Doubling the size of the matrices multiplies the arithmetic by eight but the data by only four. Big matrix multiplies can do over a thousand operations for every byte they read, if the chip can keep the numbers on-chip. If a machine can keep those numbers close at hand and reuse them, it can keep its arithmetic busy; if it has to fetch them again for every operation, it will spend its time waiting.

2The roof and the slope

A chip has two speed limits: how fast it can do arithmetic, and how fast it can read from memory. Which one binds depends on the job’s arithmetic intensity, its operations per byte. In 2009 Samuel Williams, Andrew Waterman and David Patterson at Berkeley drew this as a roofline: a sloped line for memory, a flat roof for arithmetic.1

Data Dense 16-bit tensor throughput and memory bandwidth of ten accelerators, from the V100 (2017) to Nvidia’s Rubin (VR200, first available in September 2026), from Epoch AI’s Machine Learning Hardware data (CC BY). Rubin’s row was downloaded on 7 November 2026: 4 petaFLOP/s dense FP16/BF16 and 19.2 TB/s of HBM4 per GPU, the same as Nvidia’s Vera Rubin NVL72 specifications.2 The marks on the axis are typical intensities: adding two lists of 16-bit numbers (one operation per six bytes), generating text one token at a time for a single user (about one operation per byte, since each weight is read once and used once) and a 4,096-wide matrix multiply.

Every chip here needs about 140 to 300 operations per byte before its arithmetic is the limit, and the figure rises with each generation. An H100 can do 989 trillion 16-bit operations a second but read only 3.35 trillion bytes, a ratio of about 295. Training, with its large matrix multiplies over big batches, sits on the roof. Answering one user at a time does not: each new word needs every weight read once, so the chip waits on memory. That is why serving many users in one batch is so much cheaper per user, and why memory bandwidth has become the specification buyers watch.

The maths: the roofline

A kernel with arithmetic intensity I (operations per byte read from memory) on a chip with peak arithmetic rate P and memory bandwidth B can run at most at

attainable = min( P, B × I ).

The corner, the ridge point, is at I = P / B. A matrix multiply of n × n matrices in 16-bit numbers does 2n³ operations on 6n² bytes, an intensity of n / 3, which passes the H100’s ridge of about 295 once n exceeds about 900.

3Passing numbers hand to hand

How do you actually reuse a number? In 1978 H. T. Kung and Charles Leiserson at Carnegie Mellon proposed the systolic array: a grid of simple cells, each of which multiplies the two numbers it receives, adds the product to its own total and passes the numbers on to its neighbours, like a heart pumping blood.3 Inputs enter from the edges, staggered in time, and every number is used once by every cell it passes. Below, the inputs and weights are the same numbers as in the first figure.

Model A 4 × 4 output-stationary systolic array multiplying the same two matrices as the first figure. Inputs enter from the left and weights from the top, each row and column delayed one tick more than the last, and every number moves one cell per tick. Each cell keeps a running total: it glows yellow when a pair meets and warms to orange as its sum fills in. This arrangement keeps each output in place; the first TPU instead loaded the weights into its cells and kept them there, streaming the inputs across and passing the running sums down.4

No cell ever goes back to memory. Google’s first Tensor Processing Unit, in its data centres from 2015, built its matrix unit as a 256 × 256 systolic array of 65,536 multiply-add cells working on 8-bit numbers.4 Where the 4 × 4 array above uses each number it reads four times, an array that size uses each one 256 times. Nvidia added similar matrix units, which it calls Tensor Cores, to its GPUs from the V100 of 2017. Look back at the roofline: every chip on it gets its peak from such matrix units. Google’s are large systolic arrays; Nvidia’s Tensor Cores are smaller matrix units, four in each of the H100’s 132 streaming multiprocessors, surrounded by the registers and caches that feed them.8

4Thousands of threads

Even with reuse, numbers have to come from memory sometimes, and memory is far away in clock cycles: a read from the chip’s main memory takes hundreds of cycles to return. A CPU core fights that delay with large caches and clever guessing about what it will need next. A GPU takes a blunter approach. It keeps many groups of threads on each core (Nvidia calls a group of 32 threads a warp) and, whenever one group is waiting, it switches to another that is ready, at no cost. Below, each group’s blue ticks are the cycles it computes; the long gaps are waits for memory.

Model One core with one set of arithmetic units. Each group of threads computes for 20 cycles and then waits 400 cycles for memory; the core gives the arithmetic to whichever group is ready. The cycle counts are illustrative, of the right order for GPU memory.

That is why a GPU holds hundreds of thousands of threads at once (an H100 up to 132 × 2,048, about 270,000),8 and why it is so good at work with no grey in Amdahl’s picture: drawing pixels, or the matrix multiplies of a neural network. When Nvidia released CUDA in 2007, the same trick became available for any arithmetic, and in 2012 two gaming GPUs trained the network that won ImageNet (the essay tells that story).

5Fewer bits

The Price of a Flip showed that every flip costs energy. A multiplier for 32-bit numbers is a large block of switches; one for 8-bit numbers is far smaller, because its size grows roughly with the square of the number of digits. Neural networks, it turned out, do not need 32-bit precision everywhere. The multiplications tolerate 16, 8, even 4 bits: an error of a fraction of a per cent in each product washes out across the many products summed together. The running sums and the master copy of the weights stay in 32 bits, because a tiny update added to a 16-bit weight would round away to nothing. Training moved to 16-bit numbers in the late 2010s, and inference and parts of training have since moved to 8 and 4 bits.5

Model Every value each format can store between 0 and 8 (for FP32 and the 16-bit formats there are too many to draw). E4M3 and E2M1 are the 8-bit and 4-bit floating-point formats used by current accelerators;6 E4M3 reaches 448 and E2M1 only 6. The multiplier-size estimate assumes the circuitry grows with the square of the number of digits, a rule of thumb.

With 4 bits the line has only fifteen values, and big numbers do not fit at all. That is why low-precision formats are used with a separate scale factor for each small block of numbers, so that the few values available sit where the numbers are. The pay-off is direct: on the H100, 8-bit arithmetic runs twice as fast as 16-bit, and on the B200 4-bit runs four times as fast, about 9 thousand trillion operations a second.2

6The cost of distance

Here is the reason behind all of the above, in picojoules, drawn on a package map. In 2014 Mark Horowitz of Stanford tabulated the energy of basic operations on a 45 nm chip. Adding two numbers cost a fraction of a picojoule. Reading a number from memory on another chip cost hundreds. On the map a number travels from HBM (still DRAM dies beside the logic die) through SRAM to a register beside the arithmetic; the bars give each step’s cost, to scale.7

Data + model The package from above: a number travels from HBM through SRAM to a register beside the arithmetic. Bars are drawn to scale (linear pJ). Energies: Horowitz (ISSCC 2014, 45 nm) as tabulated by Han et al. 2015, Table 1. A 32-bit float multiply is 3.7 pJ and a float add 0.9 pJ, so one multiply-add is their sum, 4.6 pJ. A 32-bit SRAM read is 5 pJ and a 32-bit read from off-package DRAM of that era 640 pJ. The HBM stacked beside a modern GPU is about five times thriftier, ≈4 pJ per bit or ≈127 pJ per 32-bit number (O’Connor et al. 2017); today’s arithmetic has shrunk as much, so a fetch still costs roughly a hundred times the operation it feeds. The reuse line is 4.6 + 640 ÷ reuse: the arithmetic, plus the DRAM read shared across the uses. The map is schematic, not to scale.7
Look inside: memory is a ladder, and every rung costs more

Between the multiplier and the DRAM sit rungs of small, fast memory on the chip itself. Each rung is bigger than the one below, and a bigger memory means longer wires and more to switch, so every read costs more. A few kilobytes cost two or three times the arithmetic; a megabyte, about twenty-five times; going off the chip, hundreds of times. Keep what you are working on on a low rung and the chip stays efficient.

Data Horowitz (2014), 45 nm, 64-bit reads.7

Moving one number from off-chip memory costs over a hundred times as much as multiplying it, so how often each fetched number is reused, not how fast the multiplier is, decides how efficient a chip is. An accelerator is designed around distance. The systolic array keeps numbers in neighbouring cells; large on-chip memories keep the working set close; and the main memory itself has moved next to the processor. High-bandwidth memory (HBM) stacks DRAM chips on top of each other and places them beside the processor in the same package, joined by thousands of short wires. An H100 reads its 80 GB of HBM3 at 3.35 TB/s.2 Three companies make HBM: SK hynix and Samsung in South Korea and Micron in the United States.

Leave the package and the same map becomes a hop between chips. Two packages, one NVLink:

Model The same package map, twice, joined by NVLink. 900 GB/s is the H100 SXM5’s intranode (NVLink 4) bandwidth in Epoch AI’s Machine Learning Hardware dataset2 (both directions together, so 450 GB/s each way). Time = data ÷ 450 GB/s, a lower bound that ignores latency and protocol overhead. Bandwidth only: no energy figure is claimed. The map is schematic.

7More than one chip

The largest models do not fit on one chip, and training them on one would take centuries. So the work is spread over thousands, and the cost of distance returns at a larger scale. In the simplest arrangement every GPU works on a different slice of the data and, after each step, all of them must add up their gradients so they stay in step. That exchange travels over links far slower than a chip’s own memory: 450 GB/s each way (900 GB/s counting both directions) between the eight GPUs in a server over Nvidia’s NVLink, while between servers each GPU has its own 400 Gb/s (about 50 GB/s) network link. Below, each step splits into computing and exchanging.2

Model Data-parallel training of a 7-billion-parameter model with a fixed batch of 4 million tokens per step on H100s at 40% utilisation, exchanging 16-bit gradients with a ring all-reduce over NVLink (up to eight GPUs) or the 400 Gb/s network (beyond). Real systems overlap the exchange with computing and split the model in other ways too, so they do better than this.

Computing time shrinks with every GPU added; the exchange does not, so it ends up being most of each step. This is Amdahl’s grey from the essay again, appearing as a network. It is why AI clusters are built around their networks, why GPUs are sold in tightly linked racks of 72, and why, in the AI Factory, thousands of GPUs pause together and the grid sees the power swing.

The maths: the cost of an all-reduce

In a ring all-reduce, each of N GPUs sends and receives 2(N − 1)/N times the gradient size G over a link of bandwidth B, so the exchange takes about

tcomm ≈ 2 (N − 1) G / (N B),

which approaches 2G/B however many GPUs join. For 7 billion 16-bit gradients, G = 14 GB, that is about 0.06 s over NVLink at 450 GB/s each way and 0.56 s over a 50 GB/s network. The computing, 6 × parameters × tokens divided by the cluster’s speed, falls as 1/N.

8Why GPUs won

A GPU was built to do the same arithmetic on millions of independent pixels, with thousands of threads to hide the wait for memory. Neural networks turned out to be the same kind of job, matrix multiplies with no grey, and the GPU’s makers then added what made them better at it: matrix units that pass numbers hand to hand, fewer bits per number, and memory stacked beside the chip. None of this needed faster switches. It needed switches arranged so that data travels as little as possible.

Final words

It is a slightly comic history. The chips that now train the largest models were built so that games could draw dragons and racing cars a little faster, and they won because a neural network turned out to look, to the hardware, exactly like a screen full of pixels. The cleverness that remains is mostly about not moving things: numbers handed from cell to cell, memory stacked right beside the chip, a few bits where thirty-two used to be. The fastest computers ever built are, in the end, very carefully arranged to stay still.

Once the arithmetic was cheap and parallel, the remaining question was how much of it to buy. The Scaling page follows the discovery that the answer is predictable, and the Language page shows why attention fits this hardware so well: it is matrix multiplies all the way down.

Notes and sources

  1. S. Williams, A. Waterman and D. Patterson, “Roofline: an insightful visual performance model for multicore architectures”, Communications of the ACM 52(4), 65–76 (2009).
  2. Epoch AI, Machine Learning Hardware (CC BY), downloaded 19 October 2026: tensor FP16/BF16, FP8 and FP4 throughput, memory size and bandwidth, intranode and internode bandwidth. H100 SXM5: 989.4 TFLOP/s BF16, 1,979 TFLOP/s FP8, 3.35 TB/s, 900 GB/s NVLink, 400 Gb/s internode. B200: 2.25 PFLOP/s BF16, 9 PFLOP/s FP4.
  3. H. T. Kung and C. E. Leiserson, “Systolic arrays (for VLSI)”, Sparse Matrix Proceedings 1978, SIAM (1979); H. T. Kung, “Why systolic architectures?”, IEEE Computer 15(1), 37–46 (1982).
  4. N. P. Jouppi et al., “In-Datacenter Performance Analysis of a Tensor Processing Unit”, ISCA 2017: “deployed in datacenters since 2015 … a 65,536 8-bit MAC matrix multiply unit”.
  5. P. Micikevicius et al., “Mixed Precision Training”, ICLR 2018.
  6. P. Micikevicius et al., “FP8 Formats for Deep Learning” (2022): E4M3 and E5M2 encodings. FP4 E2M1 is defined in the Open Compute Project’s Microscaling Formats (MX) specification, v1.0 (2023), which also specifies the shared per-block scale.
  7. M. Horowitz, “Computing’s energy problem (and what we can do about it)”, ISSCC 2014, 10–14. Values as tabulated in S. Han, J. Pool, J. Tran and W. J. Dally, “Learning both Weights and Connections for Efficient Neural Networks”, NeurIPS 2015, figure 1. The memory ladder in the drawer uses Horowitz’s own 64-bit figures from the same talk: 8 KB cache 10 pJ, 32 KB 20 pJ, 1 MB 100 pJ, DRAM 1.3 to 2.6 nJ; the bar shows the lower figure and a whisker to the upper. HBM2: M. O’Connor et al., “Fine-Grained DRAM: Energy-Efficient DRAM for Extreme Bandwidth Systems”, MICRO 2017, section 1: “approximately 3.97 pJ/bit”. Modern ratio: an H100 SXM at its 700 W rating and 989 TFLOP/s BF16 (note 2) spends ≈0.7 pJ per operation all-in, against 16 bits × 3.97 pJ ≈ 64 pJ to bring one 16-bit number from HBM.
  8. NVIDIA, “NVIDIA H100 Tensor Core GPU Architecture” white paper (2022): the H100 SXM5 has 132 streaming multiprocessors, each with four fourth-generation Tensor Cores, a 256 KB register file and 256 KB of combined L1 cache and shared memory, beside a 50 MB L2 cache and the HBM3 and NVLink interfaces. Each multiprocessor holds up to 2,048 resident threads.

Figures marked Data use the cited sources; Data + model combine them with the series’ own arithmetic. Figures marked Model are simplified models built to show a mechanism, and their numbers should not be quoted as facts. Fonts: Literata and Inter (SIL Open Font License).