Bookmarks

GPU — graphics processing unit

A processor that performs thousands of identical computations in parallel: originally for graphics, now also for training neural networks.

Also: graphics accelerator, video card

checked 9 Nov

All terms

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

PropertyCPUGPU
Number of coresa few to a few dozen complex coresthousands of simple cores
Mode of operationvaried tasks, lots of branchingone operation across many data items (SIMT)
What is optimisedlow latency for a single taskthroughput across a stream of tasks
MemoryDDR modules from tens of GB to terabytes, large cachestens of GB of video memory (HBM in accelerators) on a very wide bus, hundreds of GB/s to a few TB/s
Typical workloadsweb server, databases, orchestrationgraphics, 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 pages

Verified 9 Nov

Not to be confused with

what it is mixed up with and how it differs

  • DPUdata processing unit

    A DPU is a separate processor for networking and storage that offloads the CPU; a GPU accelerates computation and graphics.

In depth in the references

where the topic is covered in detail