Optimal, Non-pipelined Reduce-scatter and Allreduce Algorithms with an Application to All-to-all Communication

The reduce-scatter collective operation in which p processors in a network of processors collectively reduce p input vectors into a result vector which is partitioned into p blocks over the processors is important both in its own right and as building block for other collective operations. We present a surprisingly simple, but non-trivial algorithm for solving this problem optimally in \(\lceil \log _2 p\rceil\) communication rounds with each processor sending, receiving and reducing exactly p - 1 blocks of vector elements, provided that the binary reduction operator is commutative. We combine this with a similarly simple, well-known allgather algorithm to get a volume optimal algorithm for the allreduce collective operation where the result vector is replicated on all processors. The communication pattern is a simple, \(\lceil \log _2 p\rceil\) -regular, circulant graph also used elsewhere. A simple requirement on the skip sequence of the circulant graph gives freedom in the choice of communication pattern which may be valuable for practical implementation. The algorithms can readily be implemented and used for the collective operations MPI_Reduce_scatter_block , MPI_Reduce_scatter and MPI_Allreduce as specified in the MPI standard. For completeness, we also give a \(\lceil \log _2 p\rceil\) communication round optimal allreduce algorithm that can be used to implement MPI_Allreduce and is suited for smaller input vectors. Finally, we observe that the reduce-scatter algorithm can be used as a template for round-optimal all-to-all communication with smaller communication volume, for some p , than the well-known algorithm by Bruck et al. (1997) to implement the collective MPI_Alltoall operation. We provide experimental evidence on a small cluster that the algorithms can perform better than or comparably to other implemented MPI library algorithms.

Authors

Institutions

Publication Details

Journal
ACM Transactions on Parallel Computing
Published
2025-08-14
DOI
https://doi.org/10.1145/3760789
Primary Topic
Distributed Control Multi-Agent Systems
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Optimal, Non-pipelined Reduce-scatter and Allreduce Algorithms with an Application to All-to-all Communication

Jesper Larsson Träff
ACM Transactions on Parallel Computing
Distributed Control Multi-Agent Systems
article

Optimal, Non-pipelined Reduce-scatter and Allreduce Algorithms with an Application to All-to-all Communication

Jesper Larsson Träff
article en

Abstract

The reduce-scatter collective operation in which p processors in a network of processors collectively reduce p input vectors into a result vector which is partitioned into p blocks over the processors is important both in its own right and as building block for other collective operations. We present a surprisingly simple, but non-trivial algorithm for solving this problem optimally in \(\lceil \log _2 p\rceil\) communication rounds with each processor sending, receiving and reducing exactly p - 1 blocks of vector elements, provided that the binary reduction operator is commutative. We combine this with a similarly simple, well-known allgather algorithm to get a volume optimal algorithm for the allreduce collective operation where the result vector is replicated on all processors. The communication pattern is a simple, \(\lceil \log _2 p\rceil\) -regular, circulant graph also used elsewhere. A simple requirement on the skip sequence of the circulant graph gives freedom in the choice of communication pattern which may be valuable for practical implementation. The algorithms can readily be implemented and used for the collective operations MPI_Reduce_scatter_block , MPI_Reduce_scatter and MPI_Allreduce as specified in the MPI standard. For completeness, we also give a \(\lceil \log _2 p\rceil\) communication round optimal allreduce algorithm that can be used to implement MPI_Allreduce and is suited for smaller input vectors. Finally, we observe that the reduce-scatter algorithm can be used as a template for round-optimal all-to-all communication with smaller communication volume, for some p , than the well-known algorithm by Bruck et al. (1997) to implement the collective MPI_Alltoall operation. We provide experimental evidence on a small cluster that the algorithms can perform better than or comparably to other implemented MPI library algorithms.

ACM Transactions on Parallel ComputingVol. 12(4)
TU Wien (AT), Parallel Consulting (United States) (US)
Openalex Percentile: Top 55%
Distributed Control Multi-Agent Systems
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.