---
title: "GPU"
url: https://www.daytona.com/definitions/g/gpu
---

# GPU

A GPU is a processor with thousands of simpler cores suited to parallel math.

A GPU, or graphics processing unit, is built around a very large number of small arithmetic units that run many threads in lockstep. A CPU spends its chip area on making one instruction stream fast, while a GPU spends it on arithmetic. Lockstep means that a group of threads runs the same instruction at the same moment, each on its own piece of data. Threads in a group that take different branches run one after the other, which leaves some units idle.

A GPU is an accelerator rather than a standalone processor. The CPU runs the program and sends the GPU the parts that split into many identical pieces, such as the matrix multiplications in neural networks. The CPU queues that work and continues with its own tasks while the GPU runs it. Problems that do not split this way, such as walking a linked list, gain nothing from a GPU. GPUs supply most of the compute used to train and run machine learning models.

Programs reach a GPU through a vendor driver and a programming model, such as CUDA or the portable Vulkan. CUDA works only on NVIDIA hardware, so code written for it is tied to one vendor. Most machine learning code reaches the GPU through frameworks that hide the programming model behind higher-level operations. Code inside a sandbox or virtual machine reaches a GPU the same way, once the host gives it access to the device.

## Related terms

- [AI accelerator](https://www.daytona.com/definitions/a/ai-accelerator.md)
- [Bandwidth](https://www.daytona.com/definitions/b/bandwidth.md)
- [Capacity](https://www.daytona.com/definitions/c/capacity.md)
- [Chip](https://www.daytona.com/definitions/c/chip.md)
- [Chiplet](https://www.daytona.com/definitions/c/chiplet.md)
- [Cluster](https://www.daytona.com/definitions/c/cluster.md)
