Other ways to build it
GPU tensor cores against systolic arrays, Eyeriss's dataflow taxonomy with row-stationary animated, and computing in or near memory.
Check yourself ↓ three questions and what to remember, at the end
Loading the animation…
Concept
Weight-, output- and input-stationary are named after the one operand each keeps still. Chen, Emer and Sze's Eyeriss (ISCA 2016) asked what a dataflow should keep still when the layer is a convolution, where every number is reused several ways at once: each filter weight across every position of the image, each input pixel by every filter tap that overlaps it, each partial sum across every input channel. Their row-stationary dataflow keeps a whole row of each, and the animation runs it.
PE holds filter row and works through input row , one multiply per cycle: a one-dimensional convolution of two rows. When it finishes an output column it adds the partial row sum handed down by the PE above and passes the total on, so the PEs of column together add up the filter's rows into output row . Here a 3 × 3 filter runs over a 6 × 7 input on 12 PEs: 180 MACs in 17 cycles, with only 40 partial sums passed between PEs for the 20 outputs. Each filter row stays in its PE for the whole run, each input row is shared along a diagonal of PEs (rows ), and the partial sums move one short hop at a time.
The survey by Sze, Chen, Yang and Emer (2017) sorts accelerators by what stays put: weight-stationary (the TPU's matrix unit, chapter 2), output-stationary (chapter 3), no local reuse (nothing stays in the PE: every operand comes from a shared global buffer, which can then be larger) and row-stationary. The same matrix multiply costs different amounts of buffer traffic, partial-sum movement and register traffic in each, as chapters 3 and 5 counted.
Concept
GPU tensor cores. A GPU does the same matrix multiply with a different machine. Its matrix units are small and many, and whole tiles of and reach a tensor core through one instruction: on the A100 a warp issues mma.sync with both tiles in its registers; on the H100 a warpgroup (four warps) issues wgmma, which runs asynchronously and takes from shared memory ( from registers or shared memory); on Blackwell a single thread issues tcgen05.mma, which reads shared memory and accumulates in a dedicated Tensor Memory (PTX ISA). The tile's reuse comes from the memory hierarchy, with shared memory and registers holding the tiles the threads load cooperatively from HBM. GPU Kernels Explained, chapter 7 builds that GEMM step by step.
| Systolic matrix unit (TPU MXU) | GPU tensor cores | |
|---|---|---|
| Size | a few large arrays per core (128 × 128 or 256 × 256) | many small units, fed by warps (on Blackwell, one thread issues each MMA and the sums stay in Tensor Memory: a step towards the systolic side) |
| Operand reuse | inside the array: each value passes through a row or column of PEs | in registers and shared memory, tile by tile |
| Who schedules | the compiler, statically (the array is a fixed pipeline) | warps, dynamically, with many in flight to hide latency |
| Programmed in | whole-graph compilation (XLA) | kernels (CUDA, CUTLASS, Triton) |
| Good at | large dense matrix multiplies at high utilisation | the same, plus irregular work the rest of the GPU does well |
In their usual matrix modes both multiply low-precision inputs (bfloat16, FP16, INT8 and narrower) and accumulate in a wider format (chapter 6).
Computing in or near memory. The survey's section on near-data processing goes further: put the memory on top of the logic (3D-stacked DRAM such as HBM, with an order of magnitude more bandwidth), put logic into the memory's own die, or compute inside the memory array itself. In a resistive crossbar, each weight is a conductance; apply the inputs as voltages and Kirchhoff's current law sums the products along each wire. The survey calls it "the ultimate form of a weight stationary dataflow, as the weights are always held in place". It trades precision for that: analogue computation is sensitive to device variation, and converting between analogue and digital costs energy at every edge of the array. AI Accelerators Explained, chapter 9 puts a real crossbar chip's numbers on it and runs a decoder layer through it.
Maths
For a valid 2-D convolution of an input with an filter, the output is with and :
The inner sum is a one-dimensional convolution of input row with filter row : PE's job. It takes cycles per output column, in all, starting cycles late so that the partial sum from PE, finished one cycle earlier, is ready when PE finishes the same column. The run therefore takes cycles on PEs, does MACs, and passes partial sums. The tests check the output against a direct convolution and these counts against the frames.
Code
The row-stationary PE, cut from src/lib/sa/model.ts: local cycle computes output column and tap :
const col = Math.floor(u / s);
const tap = u % s;
const px = x[i + j]![col + tap]!;
const pw = f[i]![tap]!;
acc[i]![j] = (tap === 0 ? 0 : acc[i]![j]!) + px * pw;
Check yourself
Commit to an answer before you reveal it: a wrong guess you can explain teaches more than a right one you skimmed. Every number in the answers comes from the same tested model as the chapter’s.
Reveal the answer
Answer: 40 (exact)
40, two for each of the 20 outputs: . Each output's filter rows are added up down one column of PEs, one short hop at a time.
Commit to a number, then reveal.
Reveal the answer
Answer: From registers and shared memory, tile by tile
From the memory hierarchy: warps load tiles into shared memory and registers, and each tile feeds many matrix instructions. A systolic array gets its reuse inside the array.
Pick one, then reveal.
Reveal the answer
Answer: Weight-stationary
Weight-stationary: each weight is a conductance that never moves. It pays in precision (device variation) and in the energy of converting between analogue and digital at the array's edges.
Pick one, then reveal.