LESSON 6.08 · 5 STAGES · 2 CONTROLS · 3 CHECKSPRO · PREVIEW
Why GPU results aren't bit-reproducible
Watch the same eight numbers add up to different bits on one GPU.
Pro lesson. Stage 1 is free to watch. Pro opens all 5 stages, 2 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 6.08 · REDUCTION BAYFP32 · CPU LOOP · TOTAL 2.4699965
01
Stage 1 of 5 · Each add rounds
The CPU loop adds x1 to x8 in order. Each add rounds to the nearest FP32 number: a rounding error.
Explain it simply
A float can hold only some numbers, with a gap between each one and the next. Every add lands on the nearest number, and the brick bars show how far it moved. Near −22, the gap is 8 times wider than near the total. So the order of the adds decides where the biggest errors happen.
The top row holds the 8 values. The row below holds the running sums, with brick error bars. The total is 2.4699965.
valuessums and totalsthread blocks, flagrounding error, bits that differ
Toy: 8 values, 4 runs, 4 devices
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
Each running sum is the last one plus the next value, rounded.
PRO LESSON · YOU WATCHED STAGE 1 OF 5
Unlock the full explainer
- 4 more stages and 2 live controls
- 2 mix-up cards and 3 predict-then-reveal checks
- Watch it as a narrated video, in three voices
- Every Pro lesson and capstone · 656 in total
$99 a year, or $15 a month. Cancel any time.