← Back to the post: CPU vs GPU explained

CPU vs GPU, Explained

9 short sections · CPU on the left, GPU on the right

A CPU has a few fast cores.
A GPU has thousands of small ones.

This one difference explains almost everything: why AI runs on GPUs, why GPUs use more power, and why every computer still needs a CPU. Each section below runs the same task on both, side by side. Press play to see it.

CPU8 to 24 cores in a laptop or desktop, up to 192 in a server.Each core is fast and handles complex steps.
vs
GPU16,896 cores in one NVIDIA H100.Each core is simple, but all of them run together.
1
Basic idea

Painting one picture

Think of a picture made of 2,400 small squares. A CPU paints it with 16 skilled painters. Each one is fast, but there are only 16. A GPU uses thousands of painters. Each one is slower and can only do simple work, but all of them paint at once.

CPU16 fast cores
Time0.00 s
GPUthousands of small cores
Time0.00 s

Use a CPU core for one hard problem. Use thousands of GPU cores for thousands of small, identical calculations.

2
Why they are different

Same chip size, two different designs

A chip has a fixed amount of space and can use only so much power. Every part spent on one job cannot be used for another. CPU and GPU designers spend that space in very different ways, because they expect very different work.

CPUspace spent on making a few cores fast
Maths units / control / cache≈ 20 / 30 / 50 %
GPUspace spent on many maths units
Maths units / control / cache≈ 70 / 15 / 15 %
Maths units (do the calculations)Control (decides the next step)Cache (keeps data close)
Most programs are a chainIn normal software, step 2 needs the answer from step 1: check the password, then open the inbox, then load the first email. A chain cannot be split across many cores. The only way to finish it sooner is a faster core, so CPUs spend their space on guessing the next step in advance and on large caches, so a core rarely waits for memory.
Graphics and AI are many separate piecesEvery pixel on a screen, and every square of numbers inside an AI model, can be worked out on its own. Here more cores beat faster cores, so GPUs fill the chip with simple maths units. Instead of big caches, a GPU keeps thousands of tasks ready and switches to another one while one waits for memory.
Why not one chip that does both?Space and power. Make every core smart and only a few fit. Make cores simple and thousands fit, but each one is poor at decisions. So computers use both: the CPU runs the program and hands the heavy maths to the GPU.

Why a GPU cannot run Windows

GPU cores work in groups of 32 that must all run the same step at the same time. If the code makes a decision and some of the 32 need a different path, the group runs one path while the others wait, then runs the other path. Code full of decisions leaves most of a GPU waiting. A CPU core follows each decision on its own.

One GPU group32 cores, one instruction at a time
Same path for all 32 cores1 step

A CPU is built to finish one chain of steps as fast as possible. A GPU is built to finish as much total work as possible. Each one is fast at its own kind of work and slow at the other.

3
Many apps open together

Gmail, Outlook and Slack all run at once. Is that not parallel?

Only partly. A laptop has a few cores but many more apps. Each core gives an app a few milliseconds, then moves to the next one. This switching is so fast that all apps look like they run together. Click "Slowed down" to see each switch.

CPU4 cores, 6 apps
Different jobs, one after another0
GPU1,024 cores, one task
all cores at once: number × 2
Same task, all at once0

A CPU runs many different jobs by switching between them. A GPU runs one simple job on thousands of numbers at the same time. Apps need the first. Graphics and AI need the second.

4
Why AI uses GPUs

AI repeats one small calculation billions of times

An AI model is made of large tables of numbers. To write each word of an answer, it multiplies two numbers and adds the result to a total, again and again, billions of times. Each square below is one such total. No square depends on another, so all of them can be calculated together.

CPU16 squares at a time
each square = row × column, added up
Squares done0
GPUhundreds of squares at a time
same calculation, all squares at once
Squares done0
Calculations for one word16 billion
For a 100-word answer1.6 trillion

AI does not need a few powerful cores. It needs one simple calculation repeated billions of times at once. GPUs were built for this kind of work in games, and AI needs the same thing.

5
Can AI run on a CPU?

Yes, but much slower

Small models run on a normal laptop CPU without any problem. The speed gap grows as the model gets bigger. Choose a model size and press play. Both sides write the same answer.

CPUa 16-core desktop
Explain a GPU in one paragraph.
Words per second0
GPUone NVIDIA H100
Explain a GPU in one paragraph.
Words per second0

For one person testing a small model, a CPU is enough. For large models, or many users at once, it is too slow. The next section explains the main reason.

6
Memory speed

How fast numbers reach the cores

Cores can only work as fast as numbers reach them. For every word it writes, an AI model reads all of its numbers from memory once. A medium model holds about 16 GB, so it reads 16 GB for each word. Memory speed matters as much as core count.

CPUPC memory (DDR5)
About 90 GB per second≈ 5 words/s
GPUGPU memory (HBM3)
About 3,350 GB per second≈ 200 words/s
PC memoryAbout 90 GB per second. At 16 GB per word, that allows only about 5 words per second, even on a fast CPU.
GPU memoryAbout 3,350 GB per second on an H100, roughly 37 times faster, because the memory sits right next to the chip.
What it meansFor chatbots, memory speed is usually the real limit, not core count. This is why AI chips are compared on memory speed too.
7
Power use

More power overall, less energy per task

A GPU has about 80 billion transistors and thousands of cores. When it works, most of them switch on and off billions of times per second, and its memory runs at very high speed too. A CPU uses much of its chip for control and cache, so fewer parts are busy at once. This is why a GPU draws more power. It finishes AI work much faster, though, so it uses less energy for each task.

CPUdesktop CPU, full load
Power draw0 W
GPUNVIDIA H100, full load
Power draw0 W
Power draw
CPU ≈ 170 W
GPU ≈ 700 W
AI work per watt
CPU: 1×
GPU: 30–50×

Compare a bus and a car. A bus uses more fuel per hour, but less fuel per passenger. An 8-GPU server can draw about 10 kW, roughly what six home air conditioners use. This is why AI data centres need so much power and cooling.

8
When to use which

CPU or GPU: pick one for each task

A GPU does not replace a CPU. Every computer, including an AI server, has a CPU in control. A GPU takes the heavy, repetitive maths. Choose the right chip for each task below.

Score: 0 / 10
9
Summary

CPU vs GPU in one view

CPU

  • A few cores (8 to 24 in a PC), each one fast
  • Good at decisions and at switching between many different jobs
  • Runs Windows, apps, browsers, databases, websites
  • Uses about 65 to 250 W in a desktop
  • Can run small AI models, slowly

GPU

  • Thousands of small cores (16,896 in an H100), all running at once
  • Good at one simple calculation on large amounts of data
  • First built for game graphics, now used for most AI
  • Uses up to 700 W, but far less energy per piece of AI work
  • Fast memory is a big part of why AI runs well on it

A CPU decides what to do. A GPU does the heavy maths.

Hardware figures: NVIDIA H100 SXM (16,896 CUDA cores, about 80 billion transistors, up to 700 W, 3.35 TB/s HBM3), a 16-core desktop CPU with dual-channel DDR5 (about 90 GB/s), servers up to 192 cores. Speeds in the animations and the work-per-watt range are illustrative, to show the idea, not benchmarks.