Blame
|
1 | # GPU vs CPU |
||||||
| 2 | ||||||||
|
3 | *A companion page to [Workshop 1 Hardware and Networks](/dt7/Workshop%201%20Hardware%20and%20Networks).* |
||||||
|
4 | |||||||
| 5 | When you cracked open a laptop in Workshop 1, you spotted the CPU — the brain of the computer. It fetches instructions, does the maths, and keeps everything running. A modern CPU has a handful of very fast, very clever cores (usually 4 to 16). It can juggle lots of different jobs, but it tackles them roughly one at a time per core. |
|||||||
| 6 | ||||||||
| 7 | The GPU sits on a separate chip, often right next to the CPU. It was originally built to push pixels onto your screen — millions of tiny colour calculations every frame. To do that, it doesn't need a few brilliant cores; it needs **thousands of simple ones** all working at once. Each individual core is slower than a CPU core, but when thousands fire together the total throughput is enormous. |
|||||||
| 8 | ||||||||
| 9 | Here's an analogy: imagine you need to deliver 1 000 parcels across town. A CPU is like one very fast truck — it zooms between addresses, but it still visits them one by one. A GPU is like 1 000 cyclists who each grab a parcel and pedal off at the same time. No single cyclist is as fast as the truck, but the whole fleet finishes the job far sooner. |
|||||||
| 10 | ||||||||
| 11 | This is exactly why AI researchers love GPUs. Training an AI model means doing millions of simple maths operations (multiply, add, multiply, add — over and over). A CPU would grind through them in a long queue. A GPU spreads them across thousands of cores and finishes in a fraction of the time. |
|||||||
| 12 | ||||||||
| 13 | You've already seen the CPU inside a laptop. The GPU sits right next to it — and after watching the video below, you'll never forget what makes them different. |
|||||||
| 14 | ||||||||
| 15 | --- |
|||||||
| 16 | ||||||||
| 17 | ## The Video |
|||||||
| 18 | ||||||||
| 19 | {{Video|src=https://www.youtube.com/watch?v=8_ZTvG1WQxM}} |
|||||||
| 20 | ||||||||
| 21 | In this clip, the *Mythbusters* team up with NVIDIA to demonstrate the difference using paintball guns. One gun fires one ball at a time (the CPU). A massive wall of guns fires thousands at once (the GPU). The result: the Mona Lisa, painted in about 80 milliseconds. |
|||||||
| 22 | ||||||||
| 23 | --- |
|||||||
| 24 | ||||||||
| 25 | ## What to Watch For |
|||||||
| 26 | ||||||||
| 27 | - **The single-gun pass vs the wall of guns** — notice how the single gun is accurate but painfully slow, while the wall completes the whole image almost instantly. That's the core trade-off: few fast cores vs many parallel ones. |
|||||||
| 28 | - **How the final image comes together** — the GPU rig doesn't paint one row at a time. Every part of the picture appears at once. That's parallelism in action. |
|||||||
| 29 | - **The size of the rig** — look at how many barrels are in the GPU wall. A real GPU has even more cores than that (modern ones have over 10 000). |
|||||||
| 30 | - **Why accuracy per core matters less** — each paintball lands roughly where it should, not perfectly. GPUs work the same way: individually simple, collectively powerful. |
|||||||
| 31 | ||||||||
| 32 | --- |
|||||||
| 33 | ||||||||
|
34 | ## <i class="fas fa-lightbulb"></i> Have a Go |
||||||
|
35 | |||||||
|
36 | ::: info |
||||||
| 37 | **<i class="fas fa-pencil-alt"></i> Your turn!** Grab a pen (or a keyboard) and have a crack at these. |
|||||||
| 38 | ::: |
|||||||
| 39 | ||||||||
|
40 | **<i class="fas fa-film"></i> Question** ① — In the video, the CPU side uses one paintball gun and the GPU side uses a massive wall of them. Why does the GPU wall finish the picture so much faster, even though each individual paintball is no more accurate than the single gun's shot? |
||||||
|
41 | |||||||
|
42 | **<i class="fas fa-microchip"></i> Question** ② — Imagine you're designing a computer that needs to train an AI model *and* run a web browser at the same time. Which chip handles which job, and why? |
||||||
|
43 | |||||||
| 44 | ::: tip |
|||||||
|
45 | ⚡ **Hint:** Think about the truck vs cyclists analogy from above — which tasks need speed, and which need scale? |
||||||
|
46 | ::: |
||||||
|
47 | |||||||
| 48 | --- |
|||||||
| 49 | ||||||||
|
50 | See also: [Workshop 1 Hardware and Networks](/dt7/Workshop%201%20Hardware%20and%20Networks) |
||||||
|
51 | |||||||
| 52 | *Last updated: April 2026.* |
|||||||
|
53 | |||||||
| 54 | ||||||||
|
55 | ← Back to [Year 7 Hub](/dt7/Year%207%20Hub) |
||||||
