Atul Maheshwari FBCS, Principal Member of Technical Staff with AMD, takes a close look at graphics processing units (GPUs), exploring how they work and why networking is so important to AI performance
Summary
A graphics processing unit (GPU) uses thousands of tiny cores to solve many simple maths problems at exactly the same time, making it much faster than a standard processor
Because artificial intelligence and computer graphics both rely on doing millions of similar calculations simultaneously, GPUs are perfectly suited for the job
Modern AI is far too big for just one GPU, but when thousands have to work together, they end up sitting idle if they cannot talk to each other fast enough
To keep everything running smoothly, AI systems use highly specialised network connections that allow GPUs to share huge amounts of data directly with one another.
While the staggering compute power of modern GPUs dominates AI headlines, the true bottleneck in scaling artificial intelligence lies in how these processors communicate. As we read on, we’ll explore the critical role of high-performance networking in distributed AI infrastructure.
From overcoming the memory limits of single processors to leveraging RDMA and AI-focused NICs, we’ll unpack why moving data efficiently is now just as vital as calculating it. We’ll also discover how robust, low-latency network architectures keep expensive compute resources from sitting idle.
What is a GPU, and how is it different from a CPU?
The central processing unit (CPU) is the general-purpose processor at the heart of a computer. It is designed to handle a wide variety of tasks, including operating-system functions, application logic and workloads where instructions may depend heavily on the results of previous instructions.
A graphics processing unit (GPU) was originally designed for a different problem. Producing computer graphics requires performing similar mathematical operations across huge numbers of pixels, shapes and objects. Instead of concentrating primarily on a smaller number of powerful general-purpose processing cores, GPUs contain hundreds or thousands of smaller cores that perform many simple calculations at the exact same time in parallel. In short, a CPU is built for versatility; a GPU is particularly good at massive parallelism. Modern AI systems use both, but massive parallelism is what made GPUs especially valuable for AI.
Why did GPUs become so important to AI?
The connection between graphics and AI is mathematics. Rendering a complex 3D scene requires large numbers of mathematical operations to determine positions, colours and other properties. AI training and running neural networks also require enormous numbers of mathematical operations, particularly operations involving matrices and vectors. That made the parallel architecture of GPUs a natural fit for machine learning.
The GPU silicon alone was not enough. Developers also needed software that allowed them to program and use GPUs for general computing rather than graphics alone. Software platforms such as Nvidia CUDA and AMD ROCm provide programming models, runtimes, libraries and tools that allow AI frameworks and applications to make use of GPU hardware.
How does a GPU handle huge data at a fast pace?
Massive computing parallelism also creates a challenge: thousands of processing elements need a huge supply of data. A fast GPU is of little use if its processing engines spend their time waiting for memory.
Modern AI GPUs therefore use high-bandwidth memory (HBM), packaged very close to the GPU and connected through extremely wide interfaces, allowing data to reach the processing engines at several terabytes per second.
Both memory and bandwidth matter. Capacity determines how much of the AI model and its associated data can be stored in the GPU's local memory; bandwidth determines how quickly that data can be supplied for computation.
One GPU has finite compute and memory. When an AI workload needs more of either, the work must be spread across multiple GPUs. Data that was moving locally between memory and one processor therefore also needs to move between processors.
Why does AI need so many GPUs?
A single modern GPU hits physical memory and compute limits. To train a modern AI model (LLMs), you need memory for:
Model parameters
Training data (giant batches of text, images, code, etcetera)
Optimiser states and gradients (mathematically intense ‘working memory’ to calculate updates)
A large language model with one trillion parameters requires terabytes of memory and training that on a single GPU is impossible.
Training a large AI model involves repeatedly processing data, calculating results and updating the model. Large models can require enormous amounts of computation and memory, so the work is divided among many GPUs.
Inference is when the trained model is put to work, such as answering a question or generating an image. Here, response time and serving large numbers of requests become especially important, while sufficiently large models may also need to span multiple GPUs.
Training requires much more memory than inference. The solution is distributed training: divide the work among multiple GPUs by splitting the training data, the model itself, or stages of computation.
Why do these GPUs need to communicate?
Splitting the work across many GPUs solves the compute and memory problems but introduces another massive problem: the GPUs constantly need to talk to each other to stay in sync for the overall computation to progress.
Consider a simplified training example. Four GPUs train the same model using different batches of data. Each performs its calculations independently, but those results therefore need to be combined and shared to make useful progress before the next stage of training. The accuracy of the entire AI model depends upon the timely sharing of the results between GPUs.
For you
Be part of something bigger, join BCS, The Chartered Institute for IT.
This is handled through collective communication. One common collective operation is called All-Reduce. Each participating GPU contributes values it has calculated; those values are combined, for example, by summing them, and the resulting values are made available to every participant. Though precise communication pattern varies with the workload and algorithm, the important idea is straightforward: compute → communicate → compute → communicate.
Now imagine and extend that pattern from four GPUs to hundreds or thousands. At the scale of thousands of GPUs, communication can involve enormous amounts of data, and GPUs may need results before continuing their next computation. This is why adding more GPUs does not automatically make AI proportionally faster: once compute is distributed, communication becomes critical. If the data arrives late, the GPUs must wait and that would increase overall model latency.
Why does AI need high-performance networking?
From GPU silicon to large AI clusters, moving data is becoming as important as computing it. Modern AI systems use thousands of GPUs working together. Hence as the demand grows, so does the physical infrastructure: single GPU → multiple GPUs in a server → a tightly coupled scale up rack system with multiple servers → multiple scale-up racks connect and form a large scale-out AI cluster.
‘Scale-up’ connects GPUs through extremely high-bandwidth, low-latency interconnects, allowing a larger group of accelerators to work as a tightly coupled computing system. The AMD Helios rackscale solution, for example, integrates 72 AMD Instinct GPUs, 18 AMD EPYC™ server CPUs and 144 AMD Pensando Vulcano 800 AI NICs.
‘Scale-out’ connects those systems across racks through a high-performance network, allowing the AI workload to grow far beyond a single rack.
Scale-out is where high-performance AI networking becomes critical. Communication now must traverse data-centre switches across servers and racks, where additional hops, buffering and competing traffic can introduce latency and congestion that directly affect how efficiently the GPUs work together
The faster those GPU processors become, the more important it is to move data between them quickly enough to keep them working. That is why as AI systems grow, compute, memory, software and networking increasingly must work as parts of one distributed system.
Why aren't high bandwidth ethernet links alone enough?
More bandwidth certainly helps and is needed, but bandwidth alone does not guarantee that thousands of GPUs can communicate efficiently.
Imagine many GPUs completing a phase of computation at roughly the same time and beginning to send data. Multiple high-speed flows may converge on the same link or destination faster than it can forward them. Queues grow, latency rises and, if congestion continues and buffer fills, packets may be dropped.
For an ordinary application, a delayed packet may simply mean that one transfer finishes a little later. In distributed AI, that delay can have a wider effect. If other GPUs are waiting for a communication operation to be completed, a networking delay can translate directly into expensive computing resources sitting idle.
If one packet carrying part of collective operation data exchanging gradients is lost, the receiver cannot complete the required transfer until the missing data is recovered. So, the chain would become:
packet loss → loss detection → retransmission/recovery → communication completes later → collective completes later → dependent GPUs wait → next phase starts late
Hence, due to synchronisation dependency, a tiny amount of lost network data can delay a much larger distributed AI operation due to system waiting for the complete communication result.
Therefore, along with high bandwidth, AI network needs low and predictable latency, congestion management, efficient recovery from loss and effective use of the available network paths.
How do high-performance networks and AI NICs keep GPUs working?
This is where technologies such as remote direct memory access (RDMA) become important.
Traditional data transfers involve repeated work by the CPU, operating system and networking software as data moves between applications and machines. RDMA is designed to transfer data efficiently between registered memory regions while reducing repeated CPU and operating system involvement in the data path.
The CPU is still involved in setup/control — creating queue pairs, registering memory, posting work requests and so on, but it does not have to copy and process every piece of payload data through the normal networking stack. That is the major RDMA advantage.
With GPU Direct RDMA, NIC can DMA directly to/from GPU memory without staging the payload through CPU memory for the data transfer and consuming CPU cycles:
GPU memory ↔ PCIe ↔ AI NIC ↔ network ↔ AI NIC ↔ PCIe ↔ GPU memory
For a distributed AI workload moving large amounts of data between accelerators, reducing that overhead is valuable. RDMA over converged ethernet (RoCE) provides this type of high-performance communication over ethernet networks.
We traditionally think of a network interface card (NIC) as the component that connects a server to the network. In an AI cluster, the NIC sits at a critical boundary between extremely expensive computing resources (GPUs) and the switch fabric. RDMA-capable NIC typically handles important parts of the transport/data path: RDMA queue processing, packet/header generation and parsing, segmentation into network packets, acknowledgements and reliability mechanisms, and placement of received data into the correct registered memory location.
Modern AI-focused NICs support high-speed RDMA transport and increasingly participate in functions such as traffic distribution, congestion management, telemetry and efficient handling of network conditions. It helps turn separate GPU systems into a distributed AI cluster.
Why do AI GPUs generate so much heat?
A GPU performs enormous numbers of calculations every second, with billions of transistors switching while high-bandwidth memory continuously supplies data. All of this consumes electrical power, and much of that energy ultimately becomes heat.
One GPU is manageable. The challenge grows when dozens of high-power GPUs, along with CPUs, memory, AI NICs and network switches, are concentrated into a rack. The same density that gives an AI system extraordinary computing power also creates extraordinary heat and cooling demands.
This is why cooling has become part of AI infrastructure design. As rack power densities increase, traditional air cooling can become difficult or inefficient, driving greater use of distributed liquid cooling to remove heat closer to where it is generated.
From overcoming the memory limits of single processors to leveraging RDMA and AI-focused NICs, it’s clear why moving data efficiently is now just as vital as calculating it — and how robust, low-latency network architectures keep expensive compute resources from sitting idle.
Take it further
Interested in this and similar topics? Explore BCS' books and courses: