← Back to Home

Session 06 — Multicore Processors & GPUs

The closing session of Unit II. These interactive demos make the CPU-vs-GPU split physical — run them full-screen and show them live in class.

▶  Open the Interactive Slides

1. CPU vs GPU Workloads

4 big CPU cores vs 256 tiny GPU cores. Toggle between "4 heavy tasks" and "2,000 tiny tasks" and watch which chip wins — and why.

2. Warp Divergence

A warp of 32 threads hits an if/else. See threads go half-idle when they diverge — the sneaky cost that keeps branchy code off the GPU.

No installs, no compilers — these run in any modern browser. You'll write real CUDA that programs these GPU cores in Session 12 (Unit IV).