Home / Learn / AI Chips / DPU vs CPU vs GPU

On this pageDPU vs CPU vs GPU at a glanceWhat is a CPU?What is a GPU?What is a DPU (data processing unit)?DPU vs CPU: why CPUs struggle with network trafficDPU vs GPU: different jobs, same serverHow CPUs, GPUs and DPUs work together in an AI data centerWhen do you need a DPU?DPU, CPU and GPU: common questions

DPU vs CPU vs GPU: What’s the Difference?

A CPU (central processing unit) runs general software. A GPU (graphics processing unit) does the parallel math behind AI. A DPU (data processing unit) moves and secures the data traveling between them. Modern AI servers use all three, and each one handles the work the other two are bad at.

If you’ve worked with servers, you already know the CPU and the GPU. The DPU is the newer one, and it’s the one most comparisons explain badly. This guide covers what each processor does, how a DPU differs from a CPU and a GPU, and how to tell whether you need one.

DPU vs CPU vs GPU at a glance

CPUGPUDPU
Stands forCentral processing unitGraphics processing unitData processing unit
Main jobRuns operating systems and applicationsRuns AI training, inference and other parallel mathHandles networking, storage and security traffic
Built fromA few dozen large, flexible coresThousands of small arithmetic unitsMany small cores plus dedicated network and encryption hardware
In an AI serverRuns the serving softwareRuns the modelMoves data to and from both

What is a CPU?

A CPU is the general-purpose processor in every server. It runs the operating system, your applications and the software that coordinates everything else. Its strength is flexibility: it can run any program you give it.

That flexibility has a cost. A CPU is a poor fit for doing one simple thing millions of times a second, because you’re paying for capability the job doesn’t use.

What is a GPU?

A GPU is a processor built for parallel arithmetic. Give it a huge grid of numbers and one operation to apply to all of them, and nothing is faster. That’s the math neural networks are made of, which is why GPUs became the standard processor for AI training and inference.

But that is all a GPU does. It can’t fetch its own data, talk to the network or read from storage. It works on whatever it’s handed.

What is a DPU (data processing unit)?

A DPU is a processor built to handle data in motion. It sits where the network meets the server and does the delivery work itself: receiving and sending packets, encrypting traffic, talking to storage and keeping one customer’s data separate from another’s.

Inside, a DPU looks different from the other two. It has many small cores where a CPU has a few big ones (Kalray’s Coolidge DPU processor has 80), plus hardware built for specific jobs like encryption. Network packets don’t depend on each other, so lots of small cores working side by side handle them well, and they use far less power doing it. For a closer look, see What Is a DPU?

DPU vs CPU: why CPUs struggle with network traffic

The easiest way to see the difference between a DPU and a CPU is to follow one request. Say someone sends a question to a chatbot. It reaches the server as network packets. Before the model can do anything, those packets have to be received, put in order, decrypted and handed to the right program. Afterwards the answer has to be encrypted, split into packets and sent back.

None of that is AI. It’s delivery work, and in a server without a DPU the CPU does all of it.

For a long time that was fine. Then networks got much faster and CPUs mostly didn’t. A 100-gigabit Ethernet link can deliver about 150 million small packets a second, which gives a CPU core roughly 20 clock cycles to deal with each one. It can’t keep up, so servers throw more cores at the problem. Cores you bought to run software end up running the mail room.

A DPU takes that work off the CPU. This is called offloading, and it’s the main reason DPUs exist.

DPU vs GPU: different jobs, same server

A DPU and a GPU don’t compete. The GPU computes and the DPU delivers. The comparison matters because a GPU is only as productive as the data reaching it. When delivery is slow, the most expensive part in the server sits waiting.

That’s the link between DPUs and AI performance. A DPU doesn’t make the GPU faster. It keeps the GPU busy.

How CPUs, GPUs and DPUs work together in an AI data center

Send the chatbot question through a server that has all three. The DPU receives and decrypts it. The CPU runs the serving software that decides what to do with it. The GPU runs the model. The answer goes back out through the DPU.

Each processor is doing the one thing it’s good at. The CPU gets its cores back, and the GPU spends less time waiting.

When do you need a DPU?

Not always. A single server on a modest network link doesn’t have a delivery problem worth solving. You start to need a DPU when one of these is true:

  • Your network runs at 100 gigabit or faster.
  • Many GPUs or other accelerators pass data to each other constantly, as they do in AI training.
  • Several customers share the same hardware and their traffic has to be kept apart.

Most AI data centers being built today meet all three.

DPU, CPU and GPU: common questions

Can a DPU replace a CPU or a GPU?

No. A DPU takes networking, storage and security work off the CPU, but the CPU still runs the operating system and applications. A DPU doesn’t run AI models, so it doesn’t replace a GPU either.

Is a DPU the same as a SmartNIC?

They overlap. A SmartNIC is a network card with some added processing. A DPU goes further: it has its own processor cores and can run a full software stack independently of the server it’s plugged into.

Does a DPU have to be a separate chip?

No. Companies that design their own AI processors, often called XPUs, increasingly build DPU functions into the same chip as the AI hardware. The accelerator then comes with its own fast network connection built in.

DPU technology for custom AI chips

After building three generations of its own DPUs, Kalray now licenses those designs as silicon IP, so other chip teams can build DPU functions into their own processors.

See Kalray’s DPU silicon IP