English

Practical, Linear-time, Fully Distributed Algorithms for Irregular Gather and Scatter

Distributed, Parallel, and Cluster Computing 2017-04-13 v3

Abstract

We present new, simple, fully distributed, practical algorithms with linear time communication cost for irregular gather and scatter operations in which processors contribute or consume possibly different amounts of data. In a linear cost transmission model with start-up latency α\alpha and cost per unit β\beta, the new algorithms take time 3log2pα+βirmi3|{\log_2 p}|\alpha+\beta \sum_{i\neq r}m_i where pp is the number of processors, mim_i the amount of data for processor i,0i<pi, 0\leq i<p, and processor r,0r<pr, 0\leq r<p a root processor determined by the algorithm. For a fixed, externally given root processor rr, there is an additive penalty of at most β(Mdmrd0j<dMj)\beta(M_{d'}-m_{r_{d'}}-\sum_{0\leq j<d'}M_j) time steps where each MjM_j is the total amount of data in a tree of 2j2^j different processors with roots rjr_j as constructed by the algorithm. The worst-case penalty is less than βirmi\beta \sum_{i\neq r}m_i time steps. The algorithms have attractive properties for implementing the operations for MPI (the Message-Passing Interface). Standard algorithms using fixed trees take time either log2p(α+βirmi)|{\log_2 p}|(\alpha+\beta \sum_{i\neq r} m_i) in the worst case, or ir(α+βmi)\sum_{i\neq r}(\alpha+\beta m_i). We have used the new algorithms to give prototype implementations for the MPI_Gatherv and MPI_Scatterv collectives of MPI, and present benchmark results from a small and a medium-large InfiniBand cluster. In order to structure the experimental evaluation we formulate new performance guidelines for irregular collectives that can be used to assess the performance in relation to the corresponding regular collectives. We show that the new algorithms can fulfill these performance expectations with a large margin, and that standard implementations do not.

Keywords

Cite

@article{arxiv.1702.05967,
  title  = {Practical, Linear-time, Fully Distributed Algorithms for Irregular Gather and Scatter},
  author = {Jesper Larsson Träff},
  journal= {arXiv preprint arXiv:1702.05967},
  year   = {2017}
}
R2 v1 2026-06-22T18:22:57.234Z