Home Knowledge Base Parallel Prefix Scan (Parallel Scan)

Parallel Prefix Scan (Parallel Scan) is a fundamental parallel algorithm that computes prefix operations on an array — where each output element is the cumulative operation (sum, max, AND, etc.) of all preceding elements, achievable in O(log N) parallel steps.

Definition

Sequential vs. Parallel

Blelloch Two-Phase Algorithm

Up-sweep (Reduce) phase:

Down-sweep phase:

GPU Implementation (CUDA)

Applications

The parallel prefix scan is one of the most versatile parallel primitives — it appears as a subroutine in radix sort, compaction, and BFS, and mastering it is essential for efficient GPU programming.

parallel prefix scanprefix sumparallel scan algorithminclusive exclusive scan

Explore 500+ Semiconductor & AI Topics

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