LESSON 26.C2 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
One kernel on the GPU, end to end
Follow one blur kernel on a toy GPU, from launch to last pixel.
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 · 26.C2 · GPU BAY9 BLOCKS · 288 THREADS · 48 IDLE
01
Stage 1 of 6 · The launch
Explain it simply
Each GPU thread blurs one pixel. All blocks have the same shape, so the grid of blocks can reach past the image. The 48 extra threads check the bounds and stop. Every 32 threads of a block form a warp, a team that runs each step together.
The 20 by 12 image is covered by 3 by 3 blocks of 8 by 4 threads. 48 idle threads are dashed. The traced warp has 32 threads.
pixels, busy lanesblocks, SMs, sectors, cachesidle threads, masked lanes, unused bytes, waitsempty lanestraced warp, its reads, results
Toy: 26.C2 · a 20 × 12 image · 3 × 3 blur · 2 SMs · toy step counts and latencies
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
The grid holds enough whole blocks to cover the image.
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.