Parallel Computing
Also known as: Parallel processing, Parallelism
Form of computation in which many calculations run simultaneously on multiple processors or cores to solve problems faster or at larger scale.
Parallel computing divides a problem into parts that can be worked on at the same time by multiple processing units. Those units may be the cores of a single CPU, the thousands of small cores in a GPU or many machines in a cluster or supercomputer. Rendering an image is a simple example: different regions of the picture can be computed independently and combined at the end. Scientific simulation, weather forecasting, video encoding and the training of neural networks all rely heavily on parallel hardware.
Designs are often classified using Michael Flynn's 1966 taxonomy, which distinguishes, among others, a single instruction stream acting on multiple data (SIMD), as in GPUs and vector processors, from multiple instruction streams on multiple data (MIMD), as in multicore and cluster systems. Programmers use tools such as threads, OpenMP, MPI for distributed clusters and CUDA for NVIDIA GPUs. A major shift came in the mid-2000s, when limits on power and heat stopped single-core clock speeds from rising quickly and chipmakers turned to multicore designs, making parallelism necessary for ordinary software to run faster.
Not every task speeds up when given more processors. Amdahl's law, presented by Gene Amdahl in 1967, shows that the portion of a program that must run sequentially caps the possible speedup: if 10 percent of the work is serial, no number of processors can make it more than ten times faster. Parallel programs also inherit the difficulties of concurrency, including race conditions and the cost of coordinating and moving data between units. Problems that split into fully independent pieces, sometimes called embarrassingly parallel, scale best.
Key points
- Parallel computing splits work across multiple processing units that run at the same time.
- Flynn's 1966 taxonomy distinguishes designs such as SIMD, used in GPUs, from MIMD, used in multicore systems.
- Since the mid-2000s, ordinary software has needed parallelism to benefit from additional processor cores.
- Amdahl's law shows that the sequential portion of a program limits the maximum achievable speedup.
Related entries
Concurrency
Ability of a program or system to make progress on several tasks during overlapping time periods, whether or not they literally run simultaneously.
Graphics Processing Unit
Highly parallel processor originally designed to render images, now also widely used for scientific computing and for training and running AI models.
Central Processing Unit
Main processor of a computer, which fetches, decodes and executes program instructions and coordinates the operation of other components.
CUDA
Proprietary parallel computing platform and programming model from NVIDIA that lets developers run general-purpose code on its GPUs.
Moore's Law
Observation by Gordon Moore that the number of transistors on an integrated circuit doubles at a regular interval, revised in 1975 to about every two years.
Race Condition
Flaw in which a system's behavior depends on the uncontrolled timing or ordering of events, such as two threads updating the same data at once.
Approach to machine learning that trains neural networks with many layers to learn increasingly abstract representations directly from raw data.
Referenced by
Other entries that discuss or point to Parallel Computing.