What is parallel computing?

Parallel computing is splitting a computing task across many processing units running at once, such as GPU cores or several GPUs and servers, to finish faster or at a scale beyond a single unit's memory.

AI uses three main forms: data parallelism runs copies of the same model on different data shards; tensor parallelism splits one layer's matrix operations across units; pipeline parallelism assigns layers in sequential stages to different units.

Topic
Infrastructure and runtime
Also known as
Parallel processing

How parallel computing works

  1. Split the task into independent parts or sequential stages.
  2. Distribute the parts to processing units and run them at once.
  3. Units share intermediate results and gradients through communication steps.
  4. Reduce communication and waiting to keep units from sitting idle.

In more detail

Interconnect topology: NVLink versus PCIe and the inter-node network

Tensor parallelism requires fast all-reduce collectives at every transformer layer, so it performs poorly across slow PCIe links or standard Ethernet and is typically restricted within a single NVLink-connected server. Pipeline and sharded data parallelism tolerate higher latency and are used to scale across nodes via InfiniBand or RoCE.

The pipeline bubble and micro-batch scheduling

In naive pipeline parallelism, GPUs sit idle while waiting for the first forward pass to reach the end and the backward pass to return, a gap known as the pipeline bubble. Dividing batches into micro-batches and using interleaved or one-forward-one-backward (1F1B) schedules keeps accelerators much busier.

Context parallelism and expert parallelism

Beyond classic 3D parallelism, modern long-context and Mixture-of-Experts (MoE) workloads add Context Parallelism (splitting the sequence length across GPUs, as in Ring Attention) and Expert Parallelism (distributing MoE experts across devices with all-to-all routing). Combining these dimensions is standard in current training and serving stacks.

Amdahl's law, overlapping communication with compute and NCCL

As a first approximation, Amdahl's Law limits speedup to the serial fraction of a workload, while communication-to-computation overlap determines scaling efficiency. Collective operations such as all-reduce, all-gather and reduce-scatter via NCCL often govern whether adding GPUs actually lowers wall-clock time.

Commonly confused terms

TermHow it differs
ConcurrencyConcurrency is structuring multiple tasks to make overlapping progress (e.g., async I/O or interleaving on one core), whereas parallel computing executes multiple computations physically at the exact same instant across multiple cores or accelerators.
FSDP and ZeRO versus tensor parallelismFSDP / ZeRO shards optimiser states, gradients and parameters across data-parallel ranks while gathering each layer's weights on demand, whereas tensor parallelism splits individual matrix multiplications inside each layer with synchronous communication on every layer.

Why parallel computing matters for on-premises AI

A paper proposing intra-layer model parallelism for large transformers shows it needs no new compiler, complements pipeline parallelism and can be implemented by inserting a few communication operations. The paper introducing a pipeline parallelism library scales models beyond one accelerator's memory by placing sub-sequences of layers on separate accelerators. A study of memory optimisations eliminates redundancies in data and model parallel training, aiming to scale trainable model size in proportion to device count.

ON-PREMISES EXAMPLE

Because its in-house language model does not fit one GPU's memory, a telecoms operator spreads it across several GPUs in one server with tensor parallelism; finding most latency comes from inter-GPU communication, it moves to a server with faster links.

Common questions

Are more GPUs always faster?

No. Gains shrink as communication and waiting grow; the task and link speed set the right degree of parallelism.

Is parallel computing used in inference too?

Yes. Large models are spread across GPUs with tensor or pipeline parallelism, while concurrent requests are processed in parallel.

Sources

In the glossary: Glossary, M to Q

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.