A1.1.2 What a GPU does
SL + HLCommand term: Describe1. Inside a GPU — guided tour
Click Next to explore the architecture that makes a GPU so good at parallel work.
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
GPU — 64 simple cores
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:
- Describe what a GPU is and the role it plays in a computer system.
- Describe the GPU architecture of many simple cores working in parallel, with high memory bandwidth.
- Explain why this architecture suits highly parallel tasks such as graphics rendering and matrix calculations.
- Identify real-world scenarios that use GPUs, such as video games, AI training, large simulations and video editing.
- 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
| Scenario | Why a GPU suits it |
|---|---|
| Video games | Millions of pixels and vertices must be calculated 60+ times per second; each can be computed in parallel. |
| Artificial intelligence / machine learning | Training neural networks is mostly huge matrix multiplications — thousands of identical multiply-and-add operations. |
| Large simulations | Weather, physics or molecular simulations update millions of grid points or particles using the same rules each step. |
| Video editing and rendering | Effects, encoding and 3D rendering apply the same operation to every frame and pixel. |
| Scientific computing | Data 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.
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]
2. Outline two features of GPU architecture that make it suitable for complex computations. [4]
- 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]
4. Identify one type of task that is better suited to a CPU than a GPU, and justify your answer. [2]