Home › Categories › Hardware & Electronics › Graphics Processing Unit (GPU)

Graphics Processing Unit (GPU)

From WikiTech, the encyclopedia of technology

Technology · Hardware & Electronics · 4 min read · 830 words · Updated

Graphics Processing Unit (GPU)
Technology
Full nameGraphics Processing Unit
Primary design goalHigh-throughput parallel computation
Common usesGraphics, simulation, image processing, machine learning
Main componentsCompute units, memory hierarchy, schedulers
Related CPU conceptGeneral-purpose sequential and parallel processing

A graphics processing unit (GPU) is a processor designed to execute large numbers of operations in parallel. GPUs were developed to accelerate graphics workloads such as transforming vertices, shading surfaces and filling pixels. Their parallel architecture is also useful for scientific computing, image processing, simulation and machine learning. A GPU normally works alongside a central processing unit (CPU), with each processor handling the work for which it is best suited.

Why GPUs use parallel hardware

Many graphics tasks involve applying similar operations to large collections of data. Each pixel may need colour calculations, each vertex may need a geometric transformation, and each element of an image may be processed with a related instruction sequence. A GPU groups many execution resources so that a large number of such operations can be active at once. This prioritises throughput across many tasks rather than minimising the latency of one individual instruction stream.

A CPU usually has fewer, more complex cores designed to handle varied control flow, operating-system tasks and latency-sensitive work. A GPU contains many execution lanes and a memory system designed to feed them. The difference is not simply that one processor is faster: the best choice depends on the structure of the workload, its data dependencies and how much parallel work is available.

Architecture and memory

A GPU contains compute units, registers, caches, memory controllers and scheduling logic. The exact names and arrangements differ by vendor and architecture. High-bandwidth memory systems can supply large amounts of data, but performance depends on access patterns. Coalesced memory access, data reuse and efficient synchronisation can make a large difference. A program that repeatedly moves small amounts of data between CPU and GPU may spend more time transferring data than computing.

GPU memory is often separate from the CPU's main memory, although integrated systems can share physical memory. Discrete GPUs communicate with the host through an interconnect, and transfers across that boundary have a cost. Unified-memory abstractions simplify programming, but developers still need to understand where data resides and when synchronisation is required.

General-purpose GPU computing

General-purpose GPU computing applies the device to tasks beyond drawing images. A developer writes a kernel that operates on many data elements, and a programming environment schedules that kernel across the GPU. CUDA is NVIDIA's platform, while OpenCL and other standards offer different portability models. Libraries provide optimised operations for linear algebra, image processing and machine learning so developers do not need to write every low-level kernel themselves.

Not every task benefits from GPU execution. Algorithms with serial dependencies, irregular memory access or small data sets may run faster on a CPU. Moving data to the GPU, launching kernels and synchronising results all add overhead. A useful benchmark measures the complete workload and includes transfer time, memory pressure and realistic batch sizes.

GPUs and artificial intelligence

Many neural-network operations can be expressed as matrix multiplications and tensor operations. These map well to parallel hardware, which is why GPUs are widely used for model training and inference. Performance depends not only on arithmetic throughput but also on memory capacity, bandwidth, numerical precision, interconnect speed and software libraries. Large workloads may be divided across multiple GPUs and machines, adding communication and scheduling challenges.

The hardware ecosystem includes vendors such as NVIDIA and software stacks that connect GPUs to frameworks for neural networks. A model's theoretical compute requirement does not alone determine practical performance; data loading, memory movement and distributed synchronisation can be equally important.

Limits, energy and reliability

High-performance GPUs consume substantial power and generate heat, so cooling and power delivery are part of system design. Reliability also matters: long training runs need error detection, monitoring and the ability to resume after failures. In shared infrastructure, scheduling and isolation determine how efficiently many users can use accelerator resources. A GPU cluster is an infrastructure system, not simply a collection of cards.

Relationship to CPU and system architecture

A GPU is an accelerator rather than a replacement for the CPU. The CPU typically manages the application, operating system and control flow, while the GPU handles parallel regions. This division connects GPU design to CPU architectures, transformer models and the wider field of portable execution environments.

Further engineering considerations

Programming models and performance measurement

GPU programming frameworks expose parallel hardware through programming models that describe kernels, memory transfers and execution dimensions. A kernel is a function launched across many logical threads, often grouped into blocks or workgroups. The model lets a developer express a large amount of similar work without manually assigning every operation to a physical processing unit. The runtime and hardware schedule that work subject to resource limits.

Performance is not determined by arithmetic throughput alone. Moving data between system memory and device memory can cost more time than the calculation itself, and irregular memory access can prevent the hardware from reaching its potential. Developers measure end-to-end performance, profile memory behaviour and compare results against a realistic baseline. A faster isolated kernel may not make an application faster if transfers, preprocessing or synchronisation dominate. These principles are important in scientific computing, graphics and machine learning, where a neural network may involve large matrix operations but still be limited by memory capacity or input pipelines.

See also

  • NVIDIA – An American company that designs graphics processors and accelerated computing platforms.
  • Neural Network – A machine-learning model made from connected computational units that learn patterns by adjusting numerical parameters from data.
  • Arm – A British semiconductor design company that licenses processor architectures and cores.
  • Attention Is All You Need (2017) – The 2017 research paper that introduced the Transformer neural network architecture.
  • RISC-V – An open standard instruction set architecture that allows independent organisations to design compatible processors and tools.
  • WebAssembly – A portable binary instruction format that runs at near-native speed in browsers and other runtimes.
  • Apple – An American technology company that designs consumer hardware, operating systems and services.
  • OpenAI – An American artificial intelligence research and deployment company.

References

  1. ↑ NVIDIA CUDA Programming Guide (docs.nvidia.com)
  2. ↑ Khronos OpenCL Overview (khronos.org)
  3. ↑ Microsoft Direct3D documentation (learn.microsoft.com)