IB Computer Science2027 syllabus
Level view
A1.1.2

Role of a graphics processing unit

SL & HL20 min readLesson

In one sentence: A graphics processing unit (GPU) is a specialized processor whose many processing units can carry out similar calculations on many pieces of data at once.

What you will learn

By the end, you should be able to describe the role of a GPU, explain how its architecture suits large computations, and connect that design to real-world uses.

Before you begin

No prior knowledge is required. A calculation is an operation on data; parallel processing means doing multiple parts of a task at the same time.

Key words

TermSimple meaning
Graphics processing unit (GPU)A specialized processor used to accelerate graphics and other suitable computations.
Processing unit/coreA part of a processor that can perform operations on data.
Parallel processingWorking on multiple parts of a task at the same time.
RenderingProducing an image, frame, or visual output from scene data.

The idea, step by step

Why a GPU has many processing units

Some large tasks contain many pieces that need a similar calculation. For example, many pixels in an image each need a colour value calculated. A GPU is organized with many relatively small processing units so it can work on many such pieces in parallel. This design can produce high throughput: a large amount of similar work completed over time.

The work is suitable when it can be divided into many independent or mostly independent calculations. A GPU does not make every kind of computation faster. A task made of a long chain where each step must wait for the previous result offers less parallel work.

Where GPUs are useful

  • Video games and graphics rendering: calculate lighting, colour, and visual effects for many screen pixels or objects.
  • Artificial intelligence and machine learning: perform repeated mathematical operations on large sets of values, such as during model training or inference.
  • Large simulations: update many particles, cells, or other model elements using similar rules.
  • Video and image processing: apply an operation, such as a filter, across many pixels.

These examples share a pattern: a large amount of data can be processed using repeated calculations. The GPU's architecture is suited to that pattern, not simply to the topic label “graphics.”

Worked example

A game needs to shade a frame containing thousands of visible pixels. For each pixel, the rendering work uses nearby scene information to calculate a colour.

  1. The frame is divided into pixel or small-block work items.
  2. Many processing units work on different items at the same time.
  3. The calculated colours are combined into the frame that is displayed.

Because much of the calculation repeats across many pixels, doing the work in parallel can complete the frame efficiently. A small sequence of dependent decisions would not divide in the same way.

Check your understanding

  1. What feature of GPU architecture helps it process a large set of similar calculations?
  2. Why can a repeated calculation across many pixels be divided into parallel work?
  3. Name one non-game use of a GPU and identify the repeated computation.

Common mix-up

It is easy to think: A GPU is useful only for displaying game graphics.

Instead, remember: Its many processing units can also accelerate suitable computations in machine learning, simulations, and image or video processing.

Quick recap

  • A GPU specializes in graphics and other tasks with many similar calculations.
  • Many processing units can work on separate data items in parallel.
  • Games, rendering, artificial intelligence, machine learning, and large simulations can contain suitable work.
  • Suitability depends on how the task can be divided; not every computation benefits from parallel processing.

Textbook reading

Read Computer Science (Baumgarten, Ganea, Turland, 2025), A1 Computer fundamentals > A1.1 Computer hardware and operation > A1.1.2 Role of a graphics processing unit, Book pp. 5–6 (PDF pp. 15–16). The syllabus outcome is A1.1.2: “Describe the role of a GPU” (Guide p. 28; PDF p. 34).

Sources and further learning

This lesson addresses the complete listed scope of IB Computer Science Guide 2027 outcome A1.1.2, including its architecture and real-world examples. The explanation and example are original summaries.

Check your understanding4 questions · 8 marks · 10 min
Take the lesson check
Something not right?