LESSON 27.02 · 5 STAGES · 2 CONTROLS · 3 CHECKSPRO · PREVIEW
The roofline model
See why one GPU runs one kernel at 0.27 TFLOP/s and another at 247.
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 · 27.02 · ROOFLINEA100 · HBM 2.04 TB/S
01
Stage 1 of 5 · Memory roof
The HBM bandwidth B is 2.04 TB/s. At arithmetic intensity I, memory feeds at most B·I FLOP/s.
Explain it simply
The bottom axis counts FLOPs per byte, the math a kernel does for each byte it moves. The slanted line is the memory roof. Say memory sends 2.04 terabytes a second, and each byte feeds 10 FLOPs. Then the kernel gets at most 20.4 trillion FLOPs a second.
A log-log plot. The slanted memory roof rises with intensity: bandwidth 2.04 TB/s times I.
roofs: bandwidth and peakkernel: ring at its roof, dot achievedlost speed
Toy: spec-sheet GPUs, three FP16 kernels, toy efficiencies
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
Memory alone allows bandwidth times intensity FLOPs per second.
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.