LESSON 27.20 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Persistent kernels
Watch the same tiles run as one block each, then on blocks that stay.
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 · 27.20 · KERNEL BAY10 TILES · 4 SMS · WORK 20.0 µs
01
Stage 1 of 6 · The tiles
A matmul kernel splits its output into 10 tiles. A toy GPU with 4 SMs runs them.
Explain it simply
Each teal chip on top is one tile, a small block of the output. Its width is the work it needs, 2 microseconds for every tile. The four grey lanes are the SMs, the parts of the GPU that run the work. Each SM runs one block of threads at a time.
A row of 10 tile chips above 4 empty SM lanes. The tiles need 20.0 µs of work.
tile workblock setup, idle SMqueue fetchkernel end
Toy: 4 SMs, 6 to 24 output tiles, one block per SM at a time
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
The total work adds the work of every tile.
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.