LESSON 3.14 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Beyond FLOPs: memory, bandwidth and communication cost
Watch FLOPs, memory, bandwidth and messages each cost time, and see which sets the pace.
Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 3.14 · COST BAY128 FLOP · 16 NS OF COMPUTE
01
Stage 1 of 6 · Count the FLOPs
Each entry of C needs 4 multiplies and 4 adds. The 16 entries cost 128 FLOPs.
Explain it simply
A FLOP is one step of arithmetic, like one multiply or one add. For one entry of C, the chip walks along a row of A and down a column of B. That's 4 multiplies and 4 adds, and C has 16 entries. So the work is 128 FLOPs, or 16 nanoseconds at 8 FLOPs per nanosecond.
A and B are 4 × 4 matrices. C needs 16 entries of 8 FLOPs each: 128 FLOPs, 16 ns of compute.
A, B and words movedC and compute timechip resource, tilewaiting timefree fast memory
Toy: float32 C = A·B · chip 8 FLOP/ns, fast memory 48 words, 16 B/ns · link 8 B/ns + 2 ns
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
The work grows with the cube of the matrix size.
PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
- 5 more stages and 3 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.