LESSON 27.12 · 5 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Async copies and double buffering
Watch tile copies slide under the math until the math stops waiting.
Pro lesson. Stage 1 is free to watch. Pro opens all 5 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 27.12 · GPU BAYCOPY 96 NS · MATH 64 NS
01
Stage 1 of 5 · One tile step
Each tile step copies 1,024 bytes into shared memory, then does 8,192 FLOPs. An asynchronous copy lets the threads go on.
Explain it simply
Each SM builds its part of C one tile at a time. An A tile and a B tile travel from HBM into shared memory, a small fast memory on the chip. The copy takes 96 nanoseconds: 32 of waiting, then 64 of bytes arriving. The math on the CUDA cores then takes 64 nanoseconds.
An A tile and a B tile move from HBM into a shared-memory buffer. The copy takes 96 ns, the math 64 ns.
weights Ainputs B, bytes arrivingcopy in flightoutputs C, mathmath waits
Toy: the 64 × 64 matmul of 27.C2 in 16 × 16 tiles; one SM's 16 tile steps
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
A copy waits the latency, then the bytes stream in.
PRO LESSON · YOU WATCHED STAGE 1 OF 5
Unlock the full explainer
- 4 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.