Zero Labs
Industry News / AI

GPUs and TPUs: Different Origins, Converging Capabilities

Source · Towards AI By Maneet Bansal

From the publisher’s feed, collected in the ZeroLabs newsroom.

I’ve worked on infrastructure that runs workloads across different accelerator architectures, mostly from a few layers above the hardware. My day-to-day concerns have been around scheduling resources, managing runtimes, and getting workloads to run efficiently. The abstractions make that possible without having to think too much about what happens inside each accelerator.But those abstractions only take you so far when performance doesn’t behave the way you expect. Adding accelerators doesn’t always mean a proportional gain in throughput. Sometimes a performance bottleneck has more to do with memory or communication than compute. I realized I’d developed a fair amount of practical intuition about running these systems without ever really sitting down to understand the hardware underneath them. I wanted to change that.So I started digging into how GPUs and TPUs actually work. What I found interesting wasn’t just how different their architectures are, but why they ended up that way. They were originally designed to solve very different problems. Yet, as they evolved to handle increasingly similar AI workloads, their capabilities have started converging. To understand how we got here, it helps to start with the problems each was originally built to solve.Two Different Starting PointsThe history of GPUs and TPUs is fascinating enough to deserve its own article. For now, I want to focus on one part of that history that explains why their architectures ended up so different.NVIDIA had developed enormous parallel computing power for graphics. The opportunity was to make that hardware useful for more than gaming. CUDA made GPUs accessible to general-purpose parallel programs, and later, as neural networks became increasingly important, NVIDIA added specialized Tensor Cores for matrix operations.Google had a different problem. Around 2013, it estimated that if users spent just three minutes a day using voice search, the resulting neural-network workload could require doubling its datacenter capacity. Google’s response was to build specialized hardware that could execute those computations much more efficiently. That became the TPU.What I find interesting is how these motivations influenced the architectures.NVIDIA was expanding the range of workloads its hardware could support, while Google was reducing the cost of a workload it already understood.That helps explain why GPUs evolved around programmable parallel execution, with concepts like streaming multiprocessors (SMs), warps and CUDA, while TPUs placed matrix multiplication, through Matrix Multiply Units (MXUs), and structured data movement at the center of their design.Of course, both have evolved considerably since then. Modern GPUs have dedicated matrix engines, and TPUs support much broader computation. Both also depend on high-bandwidth memory (HBM) and fast communication between accelerators.The differences are no longer simply about which chip performs more calculations. They’re also about how computation is organized, how data moves, and how thousands of accelerators work together.Two Different ArchitecturesFrom the software side, it’s tempting to think of a GPU or TPU as a device with some memory and a lot of compute. You send it tensor operations, and it executes them. But that abstraction hides something interesting: the two architectures organize computation quite differently.GPU: programmable parallel executionTPU: structured tensor executionA GPU is built around executing a large number of parallel threads.In CUDA, a program launches a kernel that runs across many threads, organized into thread blocks. The hardware groups these threads into warps of 32, which execute instructions using a model called SIMT (Single Instruction, Multiple Threads). Essentially, threads in a warp execute the same instruction on different data, although they can take different execution paths when needed.These warps run on Streaming Multiprocessors (SMs). Each SM contains arithmetic units, registers, shared memory, and warp schedulers. When one warp is waiting for data, the scheduler can issue instructions from another ready warp. This is one of the ways GPUs hide memory latency and keep their execution units busy.What I find interesting is how much of the GPU’s architecture is devoted not just to arithmetic, but to managing all this parallel execution.A TPU approaches the problem from a different direction.Instead of starting with thousands of independently programmed threads, consider a large matrix multiplication. The TPU compiler, typically XLA, breaks the computation into operations and tiles that can be mapped onto the hardware.At the center of a TPU core are Matrix Multiply Units (MXUs), built from large systolic arrays of multiply-accumulate units. Rather than treating each multiplication as an isolated operation, a systolic array arranges these units so that values flow between neighboring elements as computation proceeds.TPUs also contain vector and scalar units for operations that don’t naturally fit into matrix multiplication. They’re not simply giant matrix multipliers.There’s an important caveat to this comparison. Modern GPUs also have specialized matrix hardware called Tensor Cores, and TPUs are programmable machines with more than one kind of execution unit. The distinction isn’t that one can perform an operation the other cannot.The mental model that clicked for me is that GPUs are organized around programmable parallel execution, while TPUs are organized more directly around structured tensor computation.But why does arranging computation into something like a systolic array matter? Both machines are ultimately performing many of the same arithmetic operations. A big part of the answer turns out to be what happens between those operations: moving the data.Data Movement and Why It MattersOne thing that initially surprised me was how much accelerator performance depends on moving data rather than just performing arithmetic. Modern accelerators can execute trillions of operations per second, but that compute capacity is only useful if the execution units can get the data they need.Consider matrix multiplication. The same values from each input matrix participate in many different multiplications. Fetching those values from memory for every operation would be extremely expensive. The obvious optimization is to bring data closer to the compute units and reuse it as much as possible.GPUs achieve this through a combination of tiling and their memory hierarchy. Instead of repeatedly reading entire matrices from HBM (High Bandwidth Memory), a GPU kernel works on smaller tiles, keeping frequently used values in shared memory and registers. The same data can then participate in many operations before another trip to device memory is needed.TPU systolic array approach this differently. Rather than relying entirely on moving values between memory and compute units, they arrange MAC (multiply-accumulate) elements so data can flow between neighboring elements. As values move through the array, they contribute to multiple computations without repeatedly returning to the larger memory.Figure: Data movement through a TPU systolic array. Source: Google Cloud, Kaz Sato and Cliff Young (2017).Both architectures are solving the same underlying problem: getting more computation out of every byte moved. This also explains why peak FLOPs alone tell us surprisingly little about real workload performance.And it raises an interesting question: if structured data movement is so useful, how have GPUs adapted their hardware to take advantage of it?Tensor Cores and How GPUs Adopted SpecializationGPUs were already capable of matrix multiplication long before Tensor Cores existed. But as deep learning workloads grew, NVIDIA faced an interesting problem. Matrix multiplication involves enormous amounts of repetitive arithmetic. Executing all those operations through general-purpose GPU instructions worked, but wasn’t necessarily the most efficient way to use the hardware.In 2017, NVIDIA introduced Tensor Cores with its Volta architecture. Rather than executing individual multiply-add operations through conventional CUDA arithmetic units, Tensor Cores accelerate matrix multiply-accumulate operations on small tiles. Conceptually, they compute D = A × B + C, performing a large amount of structured arithmetic through specialized matrix instructions. This allows substantially higher throughput for supported matrix operations.What I find interesting is where NVIDIA placed this specialized hardware. Tensor Cores were integrated into the GPU’s existing SMs, alongside conventional arithmetic units. The GPU still relies on SIMT execution, warp scheduling, registers, and shared memory. General-purpose execution handles indexing, control flow, and operations that don't map naturally to matrix multiplication, while Tensor Cores accelerate the parts that do.NVIDIA continued expanding these capabilities in subsequent generations, adding support for numerical formats such as BF16, TF32, and FP8. Lower precision can improve arithmetic throughput and reduce data movement, provided the workload can tolerate it.The important architectural shift wasn’t that GPUs suddenly became capable of matrix multiplication. It was that NVIDIA added specialized matrix hardware without abandoning the GPU’s programmable execution model.How GPUs and TPUs Are ConvergingThe interesting thing is that GPUs and TPUs, despite starting from very different problems, are increasingly having to solve the same architectural challenges.On the GPU side, specialization has gone beyond matrix arithmetic. NVIDIA’s Hopper architecture introduced the Tensor Memory Accelerator (TMA), dedicated hardware that moves multidimensional tensor tiles between global and shared memory. Instead of having GPU threads manage much of this movement themselves, the hardware can handle transfers asynchronously while computation continues. GPUs are increasingly specializing not just the arithmetic, but the machinery needed to keep that arithmetic running efficiently.TPUs have evolved in a different direction. The original TPU was primarily designed for inference, but TPU v2 expanded into training. Modern TPU architectures combine Matrix Multiply Units (MXUs) with vector and scalar execution capabilities to handle operations that don’t fit naturally into matrix multiplication. Programming interfaces such as JAX/Pallas also expose more explicit control over memory movement and computation, although that’s primarily an evolution in software programmability rather than a fundamental change in hardware execution.What explains this convergence is the workload itself. Modern neural networks require enormous amounts of matrix computation, but also reductions, normalization, indexing, and careful data movement. Neither specialized arithmetic nor flexible execution is sufficient on its own.The architectures still differ. GPUs retain their thread-and-warp execution model, while TPUs remain organized around compiler-mapped tensor computation. What’s converging isn’t necessarily how they execute programs, but the capabilities required to execute modern AI workloads efficiently.And increasingly, understanding those capabilities means looking beyond an individual chip.Zoom Out From Chip to SystemSo far, we’ve been looking at what happens inside an accelerator. But what happens when a workload needs more memory or computational capacity than a single accelerator can provide?Modern GPUs and TPUs have their own High Bandwidth Memory (HBM), which holds model parameters, activations, and other working state. Distributing a workload across multiple accelerators gives us access to more compute and aggregate memory capacity, but introduces another problem: moving data between accelerators is different from accessing local HBM.Consider data-parallel training, where multiple accelerators train the same model on different batches of data. Before updating their model parameters, they need to exchange and combine gradients, typically through an all-reduce operation. Adding more accelerators can reduce computation time, but the time spent communicating can limit how much of that additional compute capacity actually translates into faster training.This is where NVIDIA and Google take different architectural approaches. NVIDIA uses NVLink for high-bandwidth GPU-to-GPU communication and NVSwitch to connect multiple GPUs through a switched fabric. Google uses its Inter-Chip Interconnect (ICI) to organize TPUs into structured topologies. TPU v4, for example, connects 64 chips into a three-dimensional mesh using copper links and uses reconfigurable optical circuits to connect these cubes into larger torus topologies.Figure: From individual accelerators to interconnected AI systems. Simplified comparison of NVIDIA HGX H100 and Google TPU v4 architectures.What I find interesting is that the data movement problem we discussed earlier hasn’t gone away. It has simply extended beyond the boundaries of an individual chip. Once a workload spans multiple accelerators, memory locality, communication bandwidth, and interconnect topology become just as relevant to understanding performance as the computation happening inside each accelerator.Despite their different starting points, both NVIDIA and Google are increasingly designing not just accelerators, but entire systems for AI computation.Why GPUs Have a Broader EcosystemThe different starting points we discussed earlier shaped not just the hardware architectures, but also the software ecosystems that developed around them.By the time deep learning took off, CUDA had already been around for several years. Developers had built libraries, optimized kernels, and tools around it. When NVIDIA introduced Tensor Cores, existing libraries like cuBLAS and cuDNN were extended to take advantage of the new hardware. A developer working with PyTorch today can benefit from years of that engineering effort without writing a single CUDA kernel.Google has built a substantial software ecosystem of its own around XLA, JAX, and PyTorch support. But being able to run the same model on two accelerators and being able to run it efficiently are different things. A model built using standard framework operations might be relatively easy to move to a TPU, while one relying on custom CUDA kernels may require alternative implementations and additional performance tuning.There’s also the question of hardware accessibility. NVIDIA GPUs have long been available through multiple cloud providers, including AWS, Azure, and Google Cloud, as well as in privately operated datacenters. TPUs have historically been more closely tied to Google’s infrastructure, although their distribution is expanding.What I find interesting is that hardware capabilities can converge much faster than the ecosystems surrounding them. Choosing an accelerator is also a decision about how much of your existing software and infrastructure you can continue to use.What These Differences Mean for Infrastructure and Serving EngineersAs infrastructure engineers, we generally don’t need to understand every detail of how an accelerator executes a computation. But we do need to understand the characteristics that determine how efficiently a workload runs on it.Consider LLM inference. During prefill, we process multiple input tokens in parallel, creating opportunities to reuse model weights. During decode, particularly at smaller batch sizes, performance is often constrained more by memory bandwidth than computational throughput. Batching tokens from multiple requests can improve weight reuse and throughput, but supporting more concurrent requests also requires more memory for their KV caches. The serving engine has to balance these factors while meeting latency requirements. What's interesting is that the same model, running on the same accelerator, can have very different bottlenecks.A similar consideration exists at the infrastructure level. Imagine two workloads requesting eight accelerators each. One runs eight independent model replicas, while the other runs a single model using eight-way tensor parallelism. The latter requires frequent communication between devices, making their connectivity much more important. Simply finding eight available accelerators may not be enough. How we place the workload can significantly influence its performance.Many of these infrastructure problems are common to GPUs and TPUs. We can share abstractions for model deployment, replica management and request routing. We are already seeing this with serving frameworks like vLLM, which supports TPUs through specialized backends.To me, this is an interesting design principle for AI infrastructure. We want to hide the implementation details of accelerators from developers, without hiding the resource constraints that determine how efficiently their workloads execute.ConclusionGPUs and TPUs started with different problems. NVIDIA was extending programmable parallel hardware beyond graphics, while Google was building an accelerator for neural-network workloads already running in its datacenters. Those starting points still shape how each architecture executes computation.What has changed is how much the requirements overlap. Efficient matrix operations are central to both, but so are data reuse, memory capacity and communication across accelerators. Each architecture has evolved to address these constraints without abandoning its underlying execution model. Their software ecosystems and deployment tradeoffs remain different, too.For me, the useful shift is to stop thinking of this as only a comparison between a general-purpose GPU and a specialized TPU. At scale, we’re comparing different ways to build AI computing systems. The individual chip is still important, but understanding how a workload performs requires looking at how computation, memory, interconnects and software fit together.GPUs and TPUs: Different Origins, Converging Capabilities was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.