LESSON 27.07 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
CUDA Graphs
Watch 12 kernel launches turn into one graph launch.
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.07 · GRAPH BAYEAGER STEP 61.6 µs · IDLE 26.4 µs
01
Stage 1 of 6 · Eager step
Without a graph, the CPU launches 12 kernels one by one. The decode step takes 61.6 µs.
Explain it simply
This is the decode step from the launch overhead lesson. Each ochre block on the CPU lane is one launch of 5 microseconds. Each teal block on the GPU lane is one kernel. 8 of the 12 kernels wait for their launch, and the dashed red gaps show the idle GPU.
A CPU lane of 12 launches over a GPU lane of 12 kernels. The eager step ends at 61.6 µs.
kernel, graph nodeCPU launch, setupstart cost, idle, paddinggraph runeager run
Toy: one decode step, 12 kernels, a 1 TB/s GPU
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
A kernel starts when its launch is done and the GPU is free.
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.