Graphics Processing Unit (GPU) (OCR A Level Computer Science): Revision Note

Exam code: H446

Jamie Wood

Written by: Jamie Wood

Reviewed by: James Woodhouse

Updated on

Graphics Processing Unit (GPU)

What is a GPU?

  • In A Level Computer Science, a GPU is responsible for processing graphics within the computer to reduce the load on the CPU

  • CPUs are general purpose processors whereas GPUs are designed specifically for graphics

  • GPUs are likely to have built in circuitry or instructions for common graphics operations

  • GPUs can perform an instruction on multiple pieces of data at one time

  • This is useful when processing graphics (e.g. transforming points in a polygon or shading pixels) which means it can perform transformations to on screen graphics quicker than a CPU

  • The GPU can either be part of the graphics card or embedded in the CPU

  • Modern GPUs typically contain hundreds or even thousands of smaller processing cores, allowing them to perform many operations in parallel

What can a GPU be used for besides graphics?

  • Besides graphics processing, a GPU can also be used for:

    • 3D modelling

      • The GPU can be used to render lighting effects, textures and shadows

    • Data modelling

      • As GPUs can handle many calculations simultaneously, they can handle large datasets and complex operations like sorting and filtering data

    • Financial modelling

      • GPUs are used to simulate different scenarios in risk modelling, option pricing and other financial modelling types

      • Lots of simulations can be run in parallel

    • Data Mining

      • Data mining is the process of analysing large amounts of data to find patterns

      • The main computational tasks are sorting, searching, pattern recognition, statistical analysis and graph algorithms

    • Performing Complex Numerical Calculations

      • Matrix multiplication and inversion can be done in parallel

      • Numerical Simulations - Physics and engineering simulations often involve solving complex maths models, which can be done in parallel

      • Solving Differential equations

      • Solving differential equations involves computations which can be performed in parallel

    • Machine learning

      • This involves training a computer on a massive amount of data which can be done in parallel. There are lots of matrix multiplications and other computations which can be performed

      • After the training, GPUs can be used to speed up the process of making predictions on new data

    • Calculations on multiple data at the same time

      • There are a number of scenarios where calculations will be needed to be carried out on multiple data at the same time e.g. insurance pricing, modelling risk, calculating bills

      • This is done by GPUs rather than CPUs due to being set up for parallel processing

What types of task are GPUs suited for?

  • GPUs are suited to certain tasks that utilise:

    • Specialist instructions

      • GPUs are designed to execute specialist instructions which are common in 3D graphics rendering such as operations on matrices, vectors and geometric transformations

      • These capabilities have been expanded over time and have been generalised which makes GPUs suitable for a wide range of complex calculations besides graphics processing

    • Multiple cores 

      • Although a CPU can have multiple cores, these are optimised for serial processing

      • GPUs have smaller cores but these are optimised for parallel processing

      • GPUs can perform many calculations simultaneously - ideal for tasks that can be broken down into smaller parts

      • This is useful in machine learning and situations where large amounts of data need to be processed

    • SIMD processing

      • Single Instruction Multiple Data (SIMD) processing is computers that have multiple processing elements which perform the same operation on multiple data points simultaneously

      • GPUs support SIMD processing as they were originally designed to perform the same operations on multiple pixels or vertices simultaneously - this is a common requirement in image processing, simulations and machine learning

Examiner Tips and Tricks

  • You don’t need to know the ins and outs of these uses of GPUs (like how to solve a differential equation) but you need to know what GPUs can be used for besides graphical processing

What are the benefits of using a GPU?

  • There are a number of benefits to using a GPU as well as a CPU (it isn’t possible to only use a GPU as the CPU assigns tasks to the GPU)

    • Parallel processing

      • GPUs can handle many tasks simultaneously as they are multicore processors

    • Speed

      • As GPUs can use parallel processing, this speeds up tasks, particularly those involving large amounts of data or complex computations

    • Efficiency

      • GPUs can perform more calculations per unit of power consumed in comparison to CPUs making them more energy efficient when it comes to parallel tasks

You've read 0 of your 5 free revision notes this week

Unlock more, it's free!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Jamie Wood

Author: Jamie Wood

Expertise: Maths Content Creator

Jamie graduated in 2014 from the University of Bristol with a degree in Electronic and Communications Engineering. He has worked as a teacher for 8 years, in secondary schools and in further education; teaching GCSE and A Level. He is passionate about helping students fulfil their potential through easy-to-use resources and high-quality questions and solutions.

James Woodhouse

Reviewer: James Woodhouse

Expertise: Computer Science & English Subject Lead

James graduated from the University of Sunderland with a degree in ICT and Computing education. He has over 14 years of experience both teaching and leading in Computer Science, specialising in teaching GCSE and A-level. James has held various leadership roles, including Head of Computer Science and coordinator positions for Key Stage 3 and Key Stage 4. James has a keen interest in networking security and technologies aimed at preventing security breaches.