Advanced Topic 40 of 51 Computer Architecture & Logic
GPU Architecture
Massively parallel processors for throughput workloads.
How it works
A GPU contains thousands of simple cores grouped into streaming multiprocessors that run the same instruction across groups of threads called warps or wavefronts, following a single instruction, multiple thread model. It has high-bandwidth memory, many registers and fast shared memory per block, and hides latency by switching among many resident threads rather than by deep caches and speculation. Throughput is prioritized over single-thread speed.
Step-by-step walkthrough
- The CPU launches a kernel with thousands of threads.
- Threads are grouped into warps that run in lockstep.
- Thousands of simple cores hide memory latency by switching warps.
- Data comes from fast high-bandwidth memory.
- GPUs favor throughput over single-thread speed.
Where it is used
Graphics rendering, machine-learning training and inference, scientific simulation, video encoding and cryptocurrency mining use GPUs through CUDA, OpenCL or compute shaders.
Common pitfall
Branch divergence within a warp serializes paths, and uncoalesced memory access wastes bandwidth. Transfers between host and device memory over PCIe can dominate. Small or irregular tasks do not saturate the hardware. Design kernels with large parallelism, regular access and minimal data movement.
Where it fits in the course
GPU Architecture is topic 40 of 51 in Computer Architecture & Logic, rated Advanced. It follows SIMD and Vector Processing. The next topic is DMA.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the Computer Architecture & Logic quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the Computer Architecture & Logic quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is GPU Architecture?
Where do people use GPU Architecture?
What is the most common mistake with GPU Architecture?
What should I learn before this topic?
How can I practice it?
Is GPU Architecture hard to learn?
How long does it take to learn GPU Architecture?
Which topics are related to GPU Architecture?
What should I study after GPU Architecture?
Related topics
- SIMD and Vector Processing (Computer Architecture & Logic)
- DMA (Computer Architecture & Logic)
- Cache Coherence (Computer Architecture & Logic)
- Interrupts (Computer Architecture & Logic)
- MVC Architecture (Software Engineering)
- Layered Architecture (Software Engineering)
- IoT Architecture (Mobile, Embedded & IoT)