🧠
Domain 1 · Essential AI Knowledge · 38% of the exam

CPU vs GPU: why AI runs on graphics chips

Latency-optimised cores versus throughput-optimised cores, and why matrix maths belongs on the GPU while the CPU stays the conductor.

Lesson 8 of 29~13 min read4 quiz questions5 key terms
Exam objectives this lesson covers
  • Compare and contrast GPU and CPU architectures.
  • Explain the factors contributing to recent rapid improvements and adoption of AI.

Intel's article makes the key point first: CPU versus GPU is not a contest with one winner. They are built for different kinds of work, and every AI server uses both. The exam wants you to explain why each is built the way it is.

CPU: a few powerful coresGPU: thousands of simple coresCore 1big cache, branch logicCore 2big cache, branch logicCore 3big cache, branch logicCore 4big cache, branch logiclatency: one task, very fastthroughput: thousands of tasks at once
Fig 1. Same chip area, different philosophy. The CPU spends it on a few big, clever cores; the GPU on thousands of small ones that work in lockstep.

01The CPU: built for latency

A CPU has a small number of powerful cores (tens in a server chip). Each core has large caches, sophisticated branch prediction and out-of-order execution, all designed to finish one stream of instructions as fast as possible. That suits work that is sequential or full of decisions: the operating system, databases, web servers, data preparation, and orchestrating everything else. Intel calls it the brain of the computer.

02The GPU: built for throughput

A GPU has thousands of simpler cores grouped into streaming multiprocessors. Individually they are slower and less clever, but they execute the same instruction on many pieces of data at once. GPUs started as fixed-function graphics chips (every pixel needs the same maths) and became programmable, general-purpose parallel processors. Modern data center GPUs add Tensor Cores, units dedicated to the matrix multiply-accumulate operations that dominate neural networks, plus very fast HBM memory with terabytes per second of bandwidth.

Try the race: the same 256 independent tasks, four strong workers versus 256 simple ones.

CPU: 4 cores · GPU: 256 lanes
CPU GPU

03Why neural networks fit the GPU

A neural network layer is essentially a large matrix multiplication: millions of independent multiply-and-add operations with no decisions between them. That is the ideal GPU workload. The same work on a CPU runs on a few cores, a few operations at a time. This mismatch is the single biggest reason deep learning took off once GPUs became programmable, and it is the root of NVIDIA's role in AI.

CPUGPU
CoresFew (tens), complexThousands, simple, plus Tensor Cores
Optimised forLow latency on one taskHigh throughput on many parallel tasks
Best atSerial logic, branching, OS, databases, orchestrationMatrix maths, graphics, simulation, AI training and inference
MemoryLarge DRAM capacity, lower bandwidthHBM: smaller capacity, very high bandwidth
Role in an AI serverRuns the OS, feeds data, launches GPU workDoes the heavy numerical work

04They work as a team

In a DGX system, the CPUs boot the OS, run the container runtime, load and preprocess data, and launch kernels on the GPUs. The GPUs crunch the numbers. A common bottleneck in real clusters is the CPU side (slow data loading) leaving GPUs idle, which is why technologies like GPUDirect Storage let data skip the CPU entirely.

05Where NPUs fit

Intel also describes the NPU (neural processing unit), a small accelerator built into client processors for efficient on-device inference, such as background blur in video calls on a laptop. NPUs target low-power inference on PCs; data center training and large-scale inference remain GPU territory.

A CPU is a team of four expert chefs who can cook anything, quickly, one dish each. A GPU is a stadium kitchen of a thousand line cooks who can each only flip burgers, but all at the same moment. For a banquet of identical burgers (matrix maths), the stadium kitchen wins easily.

✦Key terms: flip the cards

What the exam looks for
  • CPU: few complex cores, latency-optimised, serial and control work.
  • GPU: thousands of simple cores, throughput-optimised, parallel maths; Tensor Cores and HBM.
  • In AI servers the CPU orchestrates and feeds; the GPU computes.
Common traps
  • GPUs do not replace CPUs; every GPU server still needs CPUs.
  • Higher clock speed does not make a CPU better at matrix maths than a GPU; parallelism wins.

?Quick quiz

1. Which workload is best suited to a GPU?

Why: Massively parallel matrix maths is the GPU sweet spot.

2. What is a GPU optimised for?

Why: GPUs maximise parallel throughput.

3. Which GPU feature specifically accelerates neural-network matrix operations?

Why: Tensor Cores perform matrix multiply-accumulate efficiently.

4. In a GPU server, what does the CPU typically do?

Why: The CPU orchestrates and feeds the GPUs.

Score: 0 / 4

Original readingCPU vs. GPU: What's the Difference?, Intel ↗

This lesson explains the reading in plain language and adds the exam context around it. Read the original too: it is short, and seeing the vendor wording helps on exam day.

All lessons →
↑