Parallel Reductions and Reproducible Order
Combine partial results along a tree while preserving the stated algebraic order and accounting for floating-point variation.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
An associative operator supports regrouping
Given \(n\) inputs and an associative combine rule, reduce local blocks and combine their aggregates in the block order. A balanced binary tree has linear total combine work and logarithmic span for unit-cost operations. If the operator is not commutative, exchanging blocks can change the result even though grouping would not. An identity handles empty blocks where needed.
Numerical addition is only approximately associative
Floating-point reductions can give different low bits with different tree shapes. When reproducibility matters, specify a deterministic grouping, use a wider or compensated accumulator, or adopt a summation method with a defined reproducibility contract. These choices affect throughput and error differently. Compensated summation explains one error-control method. Parallel prefix scans compute every preceding aggregate when a single total is insufficient.[1][2]