A GPU consists of thousands of simple execution cores and is built for throughput: many similar operations in a short time. Pixel rendering and the matrix multiplications of neural networks need exactly this mode, which is why GPUs became the foundation of machine learning.
How a GPU differs from a CPU
| Property | CPU | GPU |
|---|---|---|
| Number of cores | a few to a few dozen complex cores | thousands of simple cores |
| Mode of operation | varied tasks, lots of branching | one operation across many data items (SIMT) |
| What is optimised | low latency for a single task | throughput across a stream of tasks |
| Memory | DDR modules from tens of GB to terabytes, large caches | tens of GB of video memory (HBM in accelerators) on a very wide bus, hundreds of GB/s to a few TB/s |
| Typical workloads | web server, databases, orchestration | graphics, training and running neural networks, HPC |
In practice they work together: the CPU prepares data and drives the program, while the GPU performs the massively parallel computations. Training a model on the GPU stalls unless the CPU feeds it data — which is why input/output speed matters too.
CUDA cores and tensor cores
- CUDA cores — NVIDIA’s general-purpose execution cores: they do floating-point and integer arithmetic and process vertices and pixels.
- Tensor cores — matrix multiplication units: per clock cycle they carry out a matrix operation in mixed precision (for example, FP16 with accumulation in FP32).
- In neural network training the tensor cores do most of the work; formats with precision below FP32 make them several times faster.
For example, the NVIDIA H100 server accelerator in the SXM form factor has fourth-generation tensor cores and is specified at 1,979 teraFLOPS of BF16 and 3,958 teraFLOPS of FP8 with sparsity (half that on dense matrices); its HBM3 memory is 80 GB with a bandwidth of 3.35 TB/s.
Where GPUs are used
- Graphics: rendering in games and professional applications, video encoding.
- Machine learning: model training and inference — GPUs speed up matrix multiplication by orders of magnitude compared with CPUs.
- HPC: physical simulation, computational fluid dynamics, molecular dynamics.
- Data processing: columnar formats and faster SQL engines.
Sources
the term is written from these pagesVerified 9 Nov