Log inStart free
LESSON 31.01 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Interconnects: PCIe, NVLink, NVSwitch and InfiniBand

Watch one message cross PCIe, NVLink, NVSwitch and InfiniBand.


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/mo
EXPLAINER · 31.01 · LINK BAYGPU 0 → GPU 1 · 16 MB · PCIE 256.0 µs
01
Stage 1 of 6 · PCIe
A PCIe switch joins the CPU and 4 GPUs. GPU 0 sends 16 MB to GPU 1 in 256.0 µs.
Explain it simply

You see one server, called a node, with a CPU and four GPUs. A PCIe switch is a hub that joins them all. GPU 0 sends 16 megabytes through it. PCIe moves 64 gigabytes per second each way, so the copy takes 256 microseconds.

Node A: the CPU with host RAM, a PCIe switch and GPUs 0 to 3. GPU 0 sends 16 MB to GPU 1 over PCIe in 256.0 µs.

message, copylink (width = bandwidth)start and hop timeroute timedevice
node ACPU + host RAMPCIe switchGPU 0GPU 1GPU 2GPU 3time to move the message64 GB/sPCIe256.0 µs0 µs250 µs500 µs750 µsnode ACPU + host RAMPCIe switchGPU 0GPU 1GPU 2GPU 3time to move the message64 GB/sPCIe256.0 µs0 µs250 µs500 µs750 µs
Toy: 2 nodes × 4 GPUs, H100 rates, 5 µs per copy start
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
t=t0+S/B\sy{t}{out}{t} = \sy{t0}{grad}{t_0} + \sy{S}{data}{S} / \sy{B}{param}{B}
t=6.0+250.0=256.0 μs,  B=64 GB/st = 6.0 + 250.0 = 256.0 \ \mu\text{s}, \; B = 64\ \text{GB/s}

Time is the start and hop delay, plus the bytes over the bandwidth.

Common mix-ups

MYTHNVLink makes every GPU-to-GPU copy fast.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01With 1 sender, 4 NICs and a 64 KB message, does NVSwitch still beat GPUDirect RDMA by about 8×?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

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.