LESSON 26.09 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Warp divergence
Watch one warp run both sides of an if while some lanes wait.
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.09 · GPU BAYWARP 0 · 21 PLAIN · 11 CLAMPED
01
Stage 1 of 6 · One instruction
A warp issues one instruction to its 32 lanes at a time. Setup takes 2 steps.
Explain it simply
A warp is a team of 32 threads that share one instruction stream. Each step, the warp reads one instruction, and every lane with a thread runs it. Here all 32 lanes work through the 2 setup steps together.
The map shows 9 warps. All 32 lanes of the traced warp run the 2 setup steps.
pixels, busy lanesblocksmasked lanes, idle threads, split warpsempty lanestraced warp, steps
Toy: 26.C2 · a 20 × 12 image · 3 × 3 blur · toy step counts
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
Each step runs one instruction on all 32 lanes.
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.