Home / Learn / Processor Architecture / Heterogeneous Computing Explained
On this page
Why one kind of processor is not enoughThe processors involvedLevels of heterogeneityTwo flavorsBenefitsChallengesThe software layers that make it usableData movement as the bottleneckHeterogeneous computing in AI systemsChiplets and heterogeneous integrationWhere it is headingCommon questionsRelated guidesHeterogeneous Computing Explained
Heterogeneous computing combines different types of processor in one system, with each kind of work sent to the processor that handles it best. A typical arrangement pairs CPUs for general tasks with GPUs or other accelerators for parallel arithmetic, and often adds specialized processors for networking, storage or signal processing. It has become the standard way to build high-performance systems, because no single kind of processor is efficient at everything.
Why one kind of processor is not enough
For decades, the general-purpose CPU improved quickly enough that most computing could be done on it. That rate of improvement slowed as chips ran into limits on power and heat.
Meanwhile, important workloads grew that suit a CPU poorly. Training a neural network consists of billions of simple arithmetic operations that could all happen at once. A CPU, built to run varied instructions in sequence, is inefficient at that. A processor built for parallel arithmetic does the same work using far less time and energy.
The conclusion the industry reached is that further gains come from specialization: using different processors for different work.
The processors involved
| Processor | Good at |
|---|---|
| CPU | General-purpose tasks, complex control flow, running operating systems |
| GPU | Massively parallel arithmetic on large sets of data |
| NPU and AI accelerators | Neural network operations at low power |
| DPU | Networking, storage and security processing |
| FPGA | Custom logic that can be reconfigured |
| DSP | Signal processing |
| Fixed-function blocks | One specific task, such as video decoding or encryption |
Levels of heterogeneity
Within a chip. A phone’s system-on-chip contains large and small CPU cores, a GPU, a neural processor, image and video processors and a modem. A modern laptop processor is similar.
Within a package. Different chips, sometimes made on different processes, are combined in one package and connected closely.
Within a server. CPUs, GPUs or other accelerators, and network processors sit on the same board.
Across a data center. Different kinds of machine are specialized for different jobs, with a network joining them.
Two flavors
- Different kinds of processor. A CPU with a GPU, for example.
- Different sizes of the same kind. A chip that mixes large, fast cores with small, efficient ones, all running the same instruction set. Software moves between them according to demand.
The second is easier for software, since any program can run on any core. The first offers larger gains and needs more work to use.
Benefits
- Performance. Each task runs on hardware suited to it.
- Energy efficiency. Specialized processors do their work with far less energy than a general-purpose one would.
- Cost-effectiveness. More useful work from the same silicon and power.
- Flexibility. A range of workloads can be served by one system.
Challenges
- Programming. Each processor type traditionally has its own languages, libraries and tools. Writing software that uses several is harder than writing for one.
- Moving data. Work must be handed from one processor to another. Copying data between them takes time and energy, and can cancel the benefit of specialization.
- Scheduling. Deciding which processor should do what, and when.
- Portability. Software written for one vendor’s accelerator may not run on another’s.
- Debugging and tuning across several kinds of hardware.
- System design. Power delivery, cooling and physical layout become more complex.
The software layers that make it usable
Most developers never program an accelerator directly. Layers of software hide the differences.
- Frameworks. An AI developer describes a model in a high-level framework, which sends each part of the computation to suitable hardware.
- Compilers and runtimes. These translate high-level descriptions into instructions for each processor.
- Portable programming models. Standards exist that let the same code target different kinds of processor, with varying success.
- Operating systems and schedulers. These place tasks on appropriate cores.
The quality of this software often decides whether a heterogeneous system delivers its potential.
Data movement as the bottleneck
When computation is spread across several processors, the connections between them become critical. An accelerator that finishes its arithmetic in a millisecond gains nothing if it then waits ten milliseconds for the next batch of data.
Much current engineering effort goes into this.
- Shared and pooled memory, so processors can work on the same data without copying it.
- Faster interconnects inside the server and between servers.
- Offloading data handling to dedicated processors, freeing CPUs and accelerators for their main work.
In many real systems, the limit on performance is how fast data moves, not how fast it is processed.
Heterogeneous computing in AI systems
A modern AI server is a clear example.
- Accelerators perform the model arithmetic.
- CPUs run the operating system, prepare data and coordinate.
- DPUs or smart network cards handle networking, storage access and isolation between tenants.
- Memory and storage tiers hold models and data.
- A high-speed network joins many such servers.
Each component does what it is best at. The system’s performance depends on how well they work together.
Chiplets and heterogeneous integration
The same idea is being applied inside the package. Instead of building everything on one large piece of silicon, designers combine several smaller chips, called chiplets, each made on the process that suits it. A compute chiplet might use the most advanced process, while an input and output chiplet uses an older, cheaper one. This is sometimes called heterogeneous integration.
Where it is heading
The trend is toward more specialization and tighter integration. Systems are adding more types of accelerator, and the industry is working on standard interfaces so that components from different suppliers can be combined. The software that hides this complexity from developers continues to mature.
Common questions
What is the difference between heterogeneous and homogeneous computing?
A homogeneous system uses one type of processor throughout. A heterogeneous system combines different types, assigning each task to the most suitable one.
Is a computer with a CPU and a GPU heterogeneous?
Yes. It is the most common example. The CPU handles general tasks, and the GPU handles graphics and parallel computation.
Does heterogeneous computing make software harder to write?
At the lowest level, yes. Frameworks and compilers hide much of that complexity, so most application developers work at a higher level and let the software decide where each operation runs.