Home › Theme A › A1 › A1.1 › A1.1.2

A1.1.2 What a GPU does

SL + HLCommand term: Describe

1. Inside a GPU — guided tour

Click Next to explore the architecture that makes a GPU so good at parallel work.

GPU chip (graphics processing unit) 🗂️ Scheduler / dispatcher ⚡ Shared memory / cache wide bus 💾 VRAMhigh-bandwidthvideo memory

2. The pixel race: CPU vs GPU

Both chips must colour a 192-pixel image. Each pixel is a small, independent calculation. The CPU has 4 powerful cores (each does 2 pixels per tick). The GPU has 64 simple cores (each does 1 pixel per tick). Click Run 1 tick to step through.

CPU — 4 fast cores

Ticks: 0 · Pixels done: 0 / 192

GPU — 64 simple cores

Ticks: 0 · Pixels done: 0 / 192
Each tick, every core works on its own pixel at the same time. Predict: how many ticks will each chip need?

3. GPU or CPU? Sort the tasks

For each scenario, choose which processor is the better fit. Score: 0 /

Learning objectives

By the end of this page you should be able to:

  1. Describe what a GPU is and the role it plays in a computer system.
  2. Describe the GPU architecture of many simple cores working in parallel, with high memory bandwidth.
  3. Explain why this architecture suits highly parallel tasks such as graphics rendering and matrix calculations.
  4. Identify real-world scenarios that use GPUs, such as video games, AI training, large simulations and video editing.
  5. Outline situations in which a GPU is not the right tool, such as sequential, branch-heavy tasks.

What is a GPU?

A graphics processing unit (GPU) is a specialized processor originally designed to render images, video and 3D graphics. It works alongside the CPU as a co-processor: the CPU hands it large, repetitive workloads and gets on with general tasks.

The architecture that makes it powerful

  • Thousands of small, simple cores grouped into blocks (streaming multiprocessors). Each core is less powerful than a CPU core, but there are far more of them.
  • Massive parallelism: the same instruction is applied to many pieces of data at once (often called SIMD — single instruction, multiple data). Ideal when a task can be split into many independent pieces, like pixels or matrix values.
  • High-bandwidth memory (VRAM): dedicated video memory with a very wide bus, so huge amounts of data can be streamed to all the cores quickly.
  • Scheduler: keeps thousands of threads busy, switching to another group whenever one is waiting for data.
  • Specialized units: modern GPUs include hardware for specific jobs, e.g. tensor cores for AI matrix maths and ray-tracing cores for lighting.

Real-world scenarios

ScenarioWhy a GPU suits it
Video gamesMillions of pixels and vertices must be calculated 60+ times per second; each can be computed in parallel.
Artificial intelligence / machine learningTraining neural networks is mostly huge matrix multiplications — thousands of identical multiply-and-add operations.
Large simulationsWeather, physics or molecular simulations update millions of grid points or particles using the same rules each step.
Video editing and renderingEffects, encoding and 3D rendering apply the same operation to every frame and pixel.
Scientific computingData analysis, medical imaging and cryptography benefit from processing large data sets in parallel.

When a GPU is not the right tool

Tasks that are sequential (each step depends on the one before), full of branching decisions, or small, run better on a CPU. Running the operating system, a word processor or a web browser's logic are CPU jobs.

Exam tip: link the architecture to the task. "A GPU has thousands of cores, so it can process many pixels in parallel" scores; "a GPU is faster" does not.

Use the 中文 button at the top to show or hide the Chinese terms.

Term中文Meaning

Choose an answer. You get instant feedback.

Score: 0 /

Write your answer first, then reveal the markscheme. These are exam-style practice questions written for this site.

1. State the main purpose of a graphics processing unit (GPU). [1]

To process / render graphics, images and video (and other highly parallel computations), taking this work away from the CPU. [1]

2. Outline two features of GPU architecture that make it suitable for complex computations. [4]

Award [1] for the feature and [1] for the outline, ×2:
  • Very large number of cores [1]; so many calculations can be carried out simultaneously / in parallel [1].
  • SIMD / same instruction applied to many data items [1]; efficient for repetitive operations such as pixels or matrices [1].
  • High-bandwidth dedicated memory (VRAM) [1]; large data sets can be moved to the cores quickly [1].

3. A research team trains a neural network on millions of images. Describe why they would use GPUs. [3]

Award [1] for each, up to [3]: training involves very many matrix / multiply-add operations; these operations are independent and can be done in parallel; GPUs have thousands of cores to carry them out simultaneously; high memory bandwidth handles the large training data; training time is reduced dramatically compared with a CPU.

4. Identify one type of task that is better suited to a CPU than a GPU, and justify your answer. [2]

A suitable task, e.g. running the operating system / a word processor / a program with many decisions [1]; because it is sequential / has many branches / cannot be split into many independent parallel parts [1].