LESSON 27.03 · 5 STAGES · 2 CONTROLS · 3 CHECKSPRO · PREVIEW
Kernel launch overhead
Watch 12 small GPU kernels wait for the CPU that launches them.
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.03 · LAUNCH BAY12 KERNELS · WORK 23.2 µs
01
Stage 1 of 5 · GPU work
One decode step runs 12 kernels in order. Their memory and math work takes 23.2 µs.
Explain it simply
Each teal block is one kernel, a small program the GPU runs. Its width is the time it needs to read its bytes or do its math, whichever is longer. The four matrix products are the widest blocks, because they read the weights. With one sequence, the whole step needs 23.2 microseconds of work.
The GPU lane holds 12 kernel blocks back to back. Their work adds up to 23.2 µs.
kernel workCPU launchstart cost, idle GPUstep time
Toy: one decode step, 12 kernels, a 1 TB/s GPU
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
A kernel's work is its memory time or its math time, whichever is longer.
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.