GPU Architecture Explained: SMs, Warps, Memory and Tensor Cores
How a GPU is built inside: streaming multiprocessors, warps and SIMT execution, the memory hierarchy from registers to HBM, tensor cores, chiplets and NVLink.
A GPU (graphics processing unit) is a processor built to run thousands of threads in parallel. Instead of a few powerful cores tuned to finish one task fast, it packs many simpler execution units grouped into blocks called streaming multiprocessors (SMs), feeds them from very fast memory, and hides delays by switching between groups of threads. NVIDIA's CUDA guide sums up the trade: a GPU gives up single-thread performance to achieve much greater total throughput [1].
If you're comparing GPUs with CPUs, TPUs and other AI chips, start with our AI chips vs CPUs vs GPUs vs TPUs guide. This article looks inside the GPU itself.
CPU vs GPU: a different use of transistors
A CPU is designed to run a sequence of operations (a thread) as fast as possible and can run a few tens of threads in parallel. A GPU is designed to run thousands [1]. To get there, GPUs devote more of their transistors to data processing units, while CPUs devote more to caching and flow control [1].
An analogy: a CPU is a handful of expert chefs who can each cook any dish quickly. A GPU is a huge kitchen line where hundreds of cooks all do the same step at once, such as chopping onions, for hundreds of plates. For graphics (shading millions of pixels) and AI (multiplying huge matrices), the kitchen line wins.
The building blocks
Streaming multiprocessors and clusters
For CUDA programming purposes, NVIDIA describes a GPU as a collection of SMs organized into graphics processing clusters (GPCs) [2]. Each SM contains a register file, a unified data cache and a number of functional units that do the arithmetic [2]. A big data center GPU has many SMs.
AMD uses different names for similar ideas. Its compute units (CUs) play the role of SMs. The AMD Instinct MI300X, for example, has up to 304 CUs spread across eight accelerator complex dies [6].
Threads, blocks and warps
Software describes work as a grid of thread blocks. All the threads in one block run on a single SM, so they can share fast on-chip memory and synchronize with each other [2].
Inside a block, NVIDIA hardware groups threads into warps of 32 [2]. A warp follows a model NVIDIA calls SIMT (single instruction, multiple threads): all 32 threads execute the same instruction at the same time [2]. Each thread can take its own branch through the code, but when threads in a warp diverge, the ones not on the current path are masked off and sit idle until the paths rejoin [2]. If half the warp takes an if branch, half the hardware waits.
This is why GPU programmers care about divergence, and why thread blocks are best sized in multiples of 32. Otherwise the last warp runs with unused lanes [2].
Hiding latency with many warps
Fetching data from off-chip memory is slow compared with arithmetic. A CPU fights that with big caches and clever prediction. A GPU mostly hides it through parallelism: when one warp is waiting on memory, the SM switches to another warp that's ready [8]. Because each warp's state stays on chip for its whole lifetime, that switch costs nothing [8]. That's the deeper reason GPUs need so much parallel work to perform well. Newer GPUs add asynchronous copy hardware so threads can keep computing while data moves [8].
The memory hierarchy
Feeding thousands of threads is as hard as computing for them. GPU memory is layered from small and fast to large and slower:
Level | Where | Shared by | Role |
|---|---|---|---|
Registers | Inside each SM | One thread | Fastest storage for a thread's working values |
Shared memory and L1 cache | Inside each SM | Threads in a block | Programmer-managed scratchpad plus cache; same physical storage, split configurable at runtime [2] |
L2 cache | On the chip | All SMs | Buffers traffic to off-chip memory |
HBM (high-bandwidth memory) | Stacks beside the chip | Whole GPU | Large capacity for model weights and data |
HBM is what makes modern AI GPUs possible. Memory dies are stacked vertically and placed right next to the GPU in the same package, connected by a very wide interface. JEDEC's HBM4 standard, for instance, divides the interface into independent channels, each with a 64-bit double-data-rate bus [7]. AMD lists 192 GB of HBM3 on the MI300X with 5.3 TB/s of peak theoretical memory bandwidth [6].
For many AI workloads, especially generating text from a large language model, memory bandwidth limits speed more than raw arithmetic does. Our explainer on AI training vs inference covers why.
Tensor cores and lower precision
Classic GPU cores do one multiply-add per thread per instruction. AI is dominated by matrix multiplication, so modern GPUs add dedicated matrix engines. NVIDIA calls them tensor cores and describes them as enabling mixed-precision computing [4]. AMD's equivalent is the Matrix Core [6].
These units get much of their speed from using fewer bits per number. NVIDIA's Blackwell architecture adds 4-bit floating point (FP4) for AI, using fine-grained scaling to preserve accuracy [3], and NVIDIA's NVFP4 format applies a scaling factor to small blocks of values [4]. Halving the bits roughly halves the memory a model needs and lets more math fit into each cycle, at some cost in accuracy that software has to manage. Scientific computing still needs full 64-bit precision, which tensor cores also support [4].
To see why matrix math dominates, read how transformer models work.
Chiplets: when one die isn't enough
A single silicon die can only be so big, limited by the maximum area a lithography tool can expose at once (the reticle). Leading AI GPUs now combine several dies in one package:
- NVIDIA says all Blackwell products feature two reticle-limited dies joined by a 10 TB/s chip-to-chip interconnect, operating as a single GPU, with 208 billion transistors in total, made on a custom TSMC 4NP process [3].
- AMD describes the MI300 series as a single logical processor built from about a dozen chiplets, with compute dies stacked on I/O dies that hold the Infinity Cache and HBM3 interface [6].
The packaging that makes this work is a field of its own; see our upcoming advanced packaging explainer.
Connecting GPUs together
Big models don't fit on one GPU, so the links between GPUs matter as much as the chips. GPUs connect to the CPU over PCIe or NVIDIA's NVLink [2]. Between GPUs, NVIDIA's sixth-generation NVLink, as specified for its Vera Rubin platform, provides 3 TB/s of bandwidth per GPU, which NVIDIA puts at 12 times PCIe Gen6 [5]. Rack-scale systems such as Vera Rubin NVL72 connect 72 GPUs in an all-to-all topology [5]. These are NVIDIA's own specifications, which it labels preliminary (as of November 2026).
What GPU architecture means in practice
- For developers: performance depends on keeping SMs busy. That means plenty of parallel work, minimal warp divergence, and data access patterns that make good use of shared memory and caches [2][8].
- For AI buyers: memory capacity and bandwidth often matter as much as peak FLOPS. Check whether a model fits in one GPU's HBM before comparing compute specs.
- For the industry: gains now come from specialized units (tensor cores), lower precision, more memory bandwidth, multi-die packages and faster interconnects, not just more transistors on one die.
Limitations
- Not good at serial work. Branch-heavy code with little parallelism runs poorly.
- Power and heat. Large AI GPUs and the racks that hold them need advanced power delivery and cooling.
- Programming effort. Getting peak performance requires understanding warps, memory and precision. Software ecosystems like CUDA are a big part of a vendor's advantage.
- Precision trade-offs. Low-precision formats speed up AI but must be validated for accuracy.
Outlook
The direction is clear from vendor roadmaps: more memory bandwidth (HBM4 [7]), narrower number formats for AI [3][4], more dies per package [3][6] and faster scale-up links between GPUs [5]. Whether those translate into proportional real-world gains depends on software and workloads, so independent benchmarks such as MLPerf are worth watching more than launch-day multipliers. For the market forces behind these chips, see our upcoming AI semiconductor market explainer.
Frequently asked questions
What is a streaming multiprocessor?
The basic processing block of an NVIDIA GPU. Each SM has its own registers, cache and shared memory and many arithmetic units, and runs groups of threads called warps [2]. A GPU contains many SMs.
What is a warp?
A group of 32 threads on NVIDIA GPUs that execute the same instruction together. If threads in a warp take different branches, some are masked off while others run, which wastes capacity [2].
Why do GPUs need high-bandwidth memory?
Thousands of threads consume data very quickly. HBM stacks memory beside the GPU with a very wide interface, delivering terabytes per second of bandwidth [6][7]. Many AI workloads are limited by memory bandwidth rather than arithmetic.
What are tensor cores?
Specialized units for matrix math, the core operation in AI. They use mixed and reduced precision, down to 4-bit formats on recent NVIDIA GPUs, to boost throughput [3][4].
Why are GPUs better than CPUs for AI?
AI workloads involve the same operation on huge amounts of data, which fits the GPU's design of thousands of parallel threads and dedicated matrix units [1][4]. CPUs remain better for serial, branch-heavy tasks.
What is the difference between NVLink and PCIe?
Both connect GPUs to other chips. PCIe is the general-purpose standard. NVLink is NVIDIA's dedicated GPU interconnect with much higher bandwidth, which NVIDIA quotes at 3 TB/s per GPU on Vera Rubin [5].
Sources
- NVIDIA, "CUDA Programming Guide: Introduction" (vendor documentation). https://docs.nvidia.com/cuda/cuda-programming-guide/01-introduction/introduction.html
- NVIDIA, "CUDA Programming Guide: Programming Model" (vendor documentation). https://docs.nvidia.com/cuda/cuda-programming-guide/01-introduction/programming-model.html
- NVIDIA, "NVIDIA Blackwell Architecture" (vendor product page). https://www.nvidia.com/en-us/data-center/technologies/blackwell-architecture/
- NVIDIA, "NVIDIA Tensor Cores" (vendor product page). https://www.nvidia.com/en-us/data-center/tensor-cores/
- NVIDIA, "NVIDIA NVLink and NVLink Switch" (vendor product page). https://www.nvidia.com/en-us/data-center/nvlink/
- AMD, "AMD CDNA 3 Architecture White Paper" (vendor documentation). https://www.amd.com/content/dam/amd/en/documents/instinct-tech-docs/white-papers/amd-cdna-3-white-paper.pdf
- JEDEC, "High Bandwidth Memory (HBM4) DRAM, JESD270-4." https://www.jedec.org/standards-documents/docs/jesd270-4
- NVIDIA, "CUDA Programming Guide: Advanced Kernel Programming" (vendor documentation). https://docs.nvidia.com/cuda/cuda-programming-guide/03-advanced/advanced-kernel-programming.html