Home Knowledge Base Parallel Prefix Sum (Scan) Algorithms

Parallel Prefix Sum (Scan) Algorithms — The parallel prefix sum, or scan, computes all partial reductions of a sequence in parallel, serving as a fundamental building block for countless parallel algorithms including stream compaction, radix sort, and histogram computation.

Scan Operation Definitions — Two variants define the output semantics:

Hillis-Steele Algorithm — A simple but work-inefficient approach:

Blelloch Work-Efficient Algorithm — A two-phase approach achieving optimal work:

Large-Scale Scan Implementation — Handling arrays larger than a single thread block:

Parallel prefix sum is arguably the most important primitive in parallel algorithm design, enabling efficient parallelization of problems that appear inherently sequential by transforming them into scan-based formulations.

parallel prefix sum scaninclusive exclusive scanwork efficient scan algorithmblelloch scan parallelgpu prefix sum implementation

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.