AI uses GPUs because neural networks spend most of their time on enormous numbers of small, independent multiply-and-add calculations, and a graphics processing unit (GPU) is built to run thousands of such calculations at the same time. A GPU also moves data in and out of memory faster than an ordinary processor, and it comes with mature software that lets researchers use it without writing low-level code [1, 2].
Graphics explains both the name and the match. GPUs began as hardware for drawing 3D graphics in games, a job with the same shape as AI math: huge numbers of similar calculations that can run side by side [1, 3]. What an AI chip is places GPUs among TPUs, NPUs and other accelerators; this guide explains GPUs in depth. For where chip designers sit among the labs, cloud providers and energy suppliers, see how the AI industry works.
TL;DR
- A GPU trades speed on one task for throughput on thousands. A CPU runs a few streams of instructions very fast; a GPU runs thousands of threads in parallel [1].
- AI is mostly matrix multiplication. Multiply-add is the most common operation in neural networks, and most layers reduce to multiplying large grids of numbers [2, 4].
- Researchers proved the fit on consumer graphics cards. The 2012 AlexNet image-recognition model was trained in five to six days on two gaming GPUs and won its competition by a wide margin [5].
- Arithmetic is only half the story. Many AI operations are limited by how fast data reaches the chip, not by how fast it can calculate [2].
- Software made GPUs usable, and GPUs keep adapting. Libraries hide the hardware details, and newer GPUs add units built specifically for matrix math [1, 6, 2].
What a GPU Does Differently From a CPU
A GPU is a processor designed for throughput: getting as much total work done as possible, even if each individual task runs more slowly. A CPU, the general-purpose chip at the heart of every computer, is designed for the opposite.
NVIDIA’s programming guide describes the split plainly. A CPU is built to execute one sequence of operations, called a thread, as fast as possible and can run a few tens of threads at once; a GPU is built to run thousands of threads in parallel, accepting lower single-thread performance in exchange for much greater total throughput [1]. To get there, GPUs spend more of their transistors on units that do arithmetic, while CPUs spend more on caches and control logic [1].
Think of a CPU as a few expert chefs and a GPU as a huge kitchen of slower line cooks. When the job is chopping ten million carrots, the kitchen of line cooks wins.
Inside an NVIDIA GPU, the work happens in many identical blocks called streaming multiprocessors [2]. A GPU also needs far more threads than it has cores, because when one group of threads is waiting for data, the chip switches to another that is ready to run [2]. The design only pays off when a job can be split into a huge number of pieces.
Why AI Is Mostly Matrix Math
AI suits GPUs because the core of a neural network is one repetitive operation: multiply two numbers and add the result to a running total. NVIDIA’s performance guide calls multiply-add the most frequent operation in modern neural networks [2].
Those multiply-adds come organized as matrix multiplications, where a matrix is simply a grid of numbers. A layer in a neural network takes a grid of incoming values, multiplies it by a grid of learned weights (the numbers adjusted during training) and produces a new grid. Matrix multiplications are a fundamental building block of the main layer types [4].
Here is why that matters. When you multiply two matrices, every value in the result is its own dot product: a row from one matrix multiplied element by element with a column from the other, then summed [4]. No output value depends on any other, so all of them can be computed at the same time. The work also grows fast: multiplying an M-by-K matrix by a K-by-N matrix takes M × N × K multiply-adds, so two modest 1,000-by-1,000 matrices need one billion of them [4].
GPUs handle this by cutting the output matrix into tiles and handing each tile to a group of threads [4]. The Transformer, an influential model design for language, uses a form of attention that its authors said was faster and more memory-efficient in practice because it could be implemented with highly optimized matrix multiplication code [7]. How this arithmetic is counted is covered in what AI compute is and how it is measured.
From Graphics Chips to General-Purpose Processors
Graphics and neural networks share a shape: drawing a 3D frame repeats similar calculations for huge numbers of points and pixels, largely independently. GPUs began as special-purpose hardware with fixed circuits to accelerate those parallel rendering operations in real time [1].
Over successive generations the circuits became programmable. By 2003, some stages of the graphics pipeline could run custom code in parallel for each element of a 3D scene or image [1]. The decisive change came in 2006, when NVIDIA introduced CUDA (Compute Unified Device Architecture), a platform that let any computational workload use a GPU’s throughput without going through graphics programming interfaces [1]. From then on, a GPU could be treated as a general-purpose parallel calculator.
How Machine Learning Moved Onto GPUs
Researchers adopted GPUs because training neural networks on ordinary processors was too slow for the models they wanted. Sara Hooker, then at Google Research, traces GPU-based neural-network work back to the 2000s and attributes the switch to GPUs being far better than CPUs at parallelizing simple, decomposable instructions such as matrix multiplications [3]. Two papers show the shift clearly.
In 2009, Stanford researchers reported that training deep belief networks, an early kind of deep neural network, ran up to 70 times faster on a consumer NVIDIA GeForce GTX 280 graphics card than on a dual-core CPU; a model with 100 million parameters went from several weeks of training to about a day [8].
In 2012, a team from the University of Toronto trained an image-recognition network, now widely known as AlexNet, with 60 million parameters [5]. The authors wrote their own highly optimized GPU code and released it publicly [5]. Training took five to six days on two NVIDIA GTX 580 graphics cards with 3 GB of memory each [5]. In the ILSVRC-2012 image-recognition competition, a version of the model reached a top-5 error rate of 15.3%, against 26.2% for the second-best entry [5].
The authors also flagged the next constraints, writing that the network’s size was limited mainly by GPU memory and by how long they were willing to wait for training [5]. Because one card’s 3 GB was too small, they split the network across two GPUs that exchanged data only at certain layers [5]. Today that idea operates across thousands of chips, the subject of how thousands of GPUs become one computer.
Memory Bandwidth: Keeping the Arithmetic Fed
A GPU can only calculate as fast as data reaches it. NVIDIA’s guide says a computation’s speed is limited by one of three things: memory bandwidth (how fast data moves between memory and the processor), math bandwidth (how fast the processor calculates) and latency (delays when there is not enough parallel work) [2].
The useful idea is arithmetic intensity: how many calculations a task performs for each byte of data it reads or writes. NVIDIA notes that many common neural-network operations have low intensity [2]. In its worked example on an older V100 GPU, a simple activation step called ReLU performs 0.25 operations per byte and is limited by memory, while a large matrix layer reaches 315 and is limited by arithmetic [2].
The same layer can fall on either side of the line. Fed a batch of 512 inputs at once, a linear layer in that example is arithmetic-limited; fed one input at a time, it does about one operation per byte and becomes memory-limited [2]. Multiplying a matrix by a single column of numbers is always memory-limited [4]. That is one reason an AI service’s speed depends on how requests are grouped, not only on the chip’s peak rating.
GPUs answer this with very fast memory: NVIDIA’s example A100 GPU has up to 2,039 GB/s of bandwidth from 80 GB of high-bandwidth memory [2]. Even so, the cuDNN authors described GPU memory as fast but limited in capacity, and therefore scarce [6]. High-bandwidth memory (HBM) and the wider bottleneck are explained in why memory is the hidden AI bottleneck.
Software: Why the Programming Tools Matter as Much as the Chip
Much of the GPU’s success in AI comes from software that spares researchers from hand-tuning code for each chip.
The 2014 paper introducing cuDNN, a library of deep-learning routines for NVIDIA GPUs, made the case directly: without such a library, researchers had to write and optimize their own versions of the core calculations, and repeat that work for every new processor [6]. Plugging cuDNN into Caffe, a popular framework at the time, improved performance by 36% on a standard model, according to the authors [6].
Today, NVIDIA’s CUDA guide describes libraries such as cuBLAS for linear algebra and cuDNN for neural networks that are optimized for each GPU generation, with AI frameworks getting much of their GPU speed by calling them [1]. Higher-level languages such as OpenAI’s Triton also compile to run on CUDA [1].
That software layer is not exclusive to one vendor. AMD’s ROCm is an open software stack for programming AMD GPUs, with runtimes, compilers and math libraries, and frameworks such as PyTorch in its ecosystem [9]. PyTorch’s AMD support deliberately reuses its existing CUDA interface, so existing PyTorch code and models need very few changes, if any [10]. Lower down, AMD’s HIP language is designed to ease conversion of CUDA applications into portable code [10]. Framework-level portability does not make every custom piece of GPU code portable, which is part of why software ecosystems shape which chips developers choose. The next guide, why NVIDIA became so important to AI, follows how one company’s chips, software and systems turned that into a central role.
How GPUs Have Changed to Fit AI
GPUs have since been reshaped around AI, most clearly with dedicated matrix hardware.
NVIDIA added Tensor Cores in its Volta architecture specifically to speed up matrix multiply-and-accumulate operations for machine learning and scientific work; they operate on small blocks of a matrix rather than single pairs of numbers [2]. They can also take lower-precision inputs and accumulate results at higher precision, for example multiplying 16-bit numbers while keeping running totals in 32-bit form [2].
AMD has followed the same path. AMD says the largest improvements in its CDNA 3 data-center GPUs were in the Matrix Cores, with an emphasis on AI [11]. It also describes smaller number formats as one of the biggest levers for machine-learning performance, noting that most machine-learning work once used 32-bit numbers and has steadily moved to smaller ones [11].
The adaptation has run in both directions. The Transformer’s authors pointed out that older recurrent networks processed text one step at a time, which blocked parallel work within each training example, while their design allowed significantly more parallelization; their base model trained in 12 hours on eight NVIDIA P100 GPUs [7]. AI models have been designed to suit GPUs as much as GPUs have been designed to suit AI.
Where the GPU Explanation Stops
The reasons GPUs fit AI (parallel matrix math, fast memory and good software) are not unique to them. Other accelerators, such as Google’s TPUs, are also heavily optimized for matrix multiplication [3]. The map of AI chip types compares those alternatives and the workloads they are designed to accelerate.
The Hardware Lottery Debate
Confidence: Expert Debate
Hooker argues that research ideas succeed partly because they suit the hardware and software available, a pattern she calls the “hardware lottery” [3]. Her example is capsule networks, an alternative image-recognition design that runs reasonably on CPUs but performs poorly on GPUs and TPUs optimized for matrix multiplication [3]. NVIDIA, for its part, presents GPU programmability as foundational to advances from image classification to large language models [1]. Both can be true: GPUs enabled much of modern AI, and their strengths may also have steered researchers toward methods that suit them.
Practical Takeaways
- Read “GPU” as “parallel matrix calculator”. The graphics name is historical; the math explains the fit.
- Look past peak calculation speed. Memory bandwidth, memory capacity and how work is batched often decide real performance [2].
- Count the software, not just the silicon. A chip is only as useful as the libraries and frameworks that run on it [6, 10].
- Treat vendor comparisons as vendor claims. Statements about GPU versus CPU throughput or new number formats come from companies selling the hardware [1, 11].
- Don’t assume GPUs are the final answer. Other accelerators target the same operations, and hardware fit can shape which AI methods get pursued [3].
Sources
- 1.1. Introduction — CUDA Programming Guide. NVIDIA, 2026-10-31, accessed 2026-11-09.
- GPU Performance Background User's Guide. NVIDIA, 2023-02-01, accessed 2026-11-09.
- The Hardware Lottery. arXiv, 2020-09-14, accessed 2026-11-09.
- Matrix Multiplication Background User's Guide. NVIDIA, 2023-02-01, accessed 2026-11-09.
- ImageNet Classification with Deep Convolutional Neural Networks. University of Toronto (author-hosted copy of the paper), 2012, accessed 2026-11-09.
- cuDNN: Efficient Primitives for Deep Learning. arXiv, 2014-10-03, accessed 2026-11-09.
- Attention Is All You Need. arXiv, 2017-06-12, accessed 2026-11-09.
- Large-scale Deep Unsupervised Learning using Graphics Processors. Proceedings of the 26th International Conference on Machine Learning (as printed on the paper), 2009, accessed 2026-11-09.
- What is ROCm?. AMD, accessed 2026-11-09.
- HIP (ROCm) semantics — PyTorch 2.15 documentation. PyTorch, 2026-10-01, accessed 2026-11-09.
- AMD CDNA 3 Architecture (white paper). AMD, accessed 2026-11-09.
