Heterogeneous Computing

Running work across different processor types such as CPUs, GPUs, and specialized accelerators instead of assuming one machine shape fits everything.

Is the accelerator actually saving time?

A batch takes 80 milliseconds on a CPU. A GPU performs the computation in 20 milliseconds but moving the inputs and results takes another 50 milliseconds in this example.

CaseInputsResult
CPU80 ms computation80 ms total
GPU20 ms computation + 50 ms transfer70 ms total

Read the right speedup

The isolated kernel is four times as fast, while the full path saves ten milliseconds. Changing batch size or retaining data on the device can change the result.

Why It Matters

Many modern AI and HPC systems are already heterogeneous whether teams plan for it or not. A cluster may have general-purpose CPUs for orchestration, GPUs for dense numerical kernels, and specialized hardware for networking or inference. Good performance depends on treating those resources as different tools with different strengths, not as interchangeable slots.

What Makes It Hard

Heterogeneous systems are harder to schedule because each device class has different memory behavior, queueing limits, transfer costs, and software constraints. A task that runs fastest on a GPU may still be a bad placement if moving its data costs too much or if the accelerator is already saturated.

That is why heterogeneous computing is often discussed alongside load balancing, telemetry, and autoscaling. Teams need current signals about device pressure, job shape, and available capacity before they can place work well.

Where You See It

You see heterogeneous computing in supercomputers, distributed AI training, high-throughput inference, robotics, and edge systems that mix local CPUs with attached accelerators. It is one of the main reasons performance engineering has become a placement problem as much as a coding problem.

Follow the idea

Related concepts (5)
Return to Heterogeneous Computing in the A–Z glossary