[Paper Review] Message-Combining Algorithms for Isomorphic, Sparse Collective Communication
This paper proposes locally computable, message-combining algorithms for isomorphic, sparse collective communication in regular topologies like d-dimensional tori, reducing communication rounds from s to at most Nd for s-process neighborhoods. The approach achieves up to 6x fewer rounds (e.g., 26→6 for 27-point stencils) and significantly lowers latency for small messages (up to 1 kB), outperforming MPI neighborhood collectives and naive implementations via zero-copy, derived datatype-based schedules.
Isomorphic (sparse) collective communication is a form of collective communication in which all involved processes communicate in small, identically structured neighborhoods of other processes. Isomorphic neighborhoods are defined via an embedding of the processes in a regularly structured topology, e.g., $d$-dimensional torus, which may correspond to the physical communication network of the underlying system. Isomorphic collective communication is useful for implementing stencil and other regular, sparse distributed computations, where the assumption that all processes behave (almost) symmetrically is justified. In this paper, we show how efficient message-combining communication schedules for isomorphic, sparse collective communication can easily and efficiently be computed by purely local computations. We give schemes for \emph{isomorphic \alltoall} and \emph{\allgather} communication that reduce the number of communication rounds and thereby the communication latency from $s$ to at most $Nd$, for neighborhoods consisting of $s$ processes with the (small) factor $N$ depending on the structure of the neighborhood and the capabilities of the communication system. Using these schedules, we give \emph{zero-copy implementations} of the isomorphic collectives using MPI and its derived datatypes to eliminate explicit, process-local copy operations. By benchmarking the collective communication algorithms against straightforward implementations and against the corresponding MPI neighborhood collectives, we document significant latency improvements of our implementations for block sizes of up to a few kilobytes. We discuss further optimizations for computing even better schedules, some of which have been implemented and benchmarked.
Motivation & Objective
- To address the inefficiency of standard MPI neighborhood collectives in handling isomorphic, sparse communication patterns common in stencil computations.
- To enable low-latency collective communication by exploiting global regularity in process neighborhoods through local computation.
- To design persistent, zero-copy implementations using MPI derived datatypes that eliminate redundant data copies.
- To demonstrate that message-combining schedules can be computed locally and yield measurable performance gains over standard MPI and naive implementations.
- To explore the feasibility of integrating such optimizations into MPI if isomorphism is externally asserted.
Proposed method
- Define isomorphic neighborhoods via identical relative offset vectors in a d-dimensional torus topology, enabling symmetric communication patterns across all processes.
- Construct message-combining schedules that merge messages to multiple neighbors into single, larger messages sent along torus dimensions only, reducing round count from s to Nd.
- Use MPI derived datatypes to implement zero-copy communication, avoiding explicit local buffer copies and reducing overhead.
- Implement persistent interfaces with precomputed schedules to amortize setup costs, especially for repeated operations.
- Design two variants: one optimal in rounds (using intermediate hops), and one balancing rounds and volume (allowing direct communication).
- Benchmark against naive implementations and MPI neighborhood collectives across diverse architectures (e.g., ARCHER, non-torus systems) with varying message sizes and process counts.
Experimental results
Research questions
- RQ1Can efficient, deadlock-free message-combining schedules for isomorphic all-to-all and allgather be computed using only local knowledge of the neighborhood structure?
- RQ2To what extent can message-combining reduce communication rounds and latency in sparse, isomorphic collectives compared to naive or standard MPI implementations?
- RQ3How do performance gains vary with message size, neighborhood structure, and underlying network topology (e.g., torus vs. non-torus)?
- RQ4Can the proposed algorithms be effectively integrated into existing MPI libraries if isomorphism is externally asserted?
- RQ5What trade-offs exist between number of communication rounds and total message volume in isomorphic message-combining schedules?
Key findings
- The proposed message-combining algorithms reduce the number of communication rounds from s to at most Nd, achieving a 6x reduction in rounds for a 27-point stencil (26→6) on a one-ported system.
- For message sizes up to 1 kB, the optimized implementations outperform both the standard MPI neighborhood collective and naive implementations by significant margins, especially in latency-sensitive workloads.
- On the ARCHER system, MPI’s native collectives performed better due to superior pipelining and multi-ported network support, but the message-combining approach still improved over the naive algorithm by large factors.
- The zero-copy approach using MPI derived datatypes eliminated process-local copy operations, contributing to reduced latency and improved performance.
- The performance gains diminish at larger message sizes due to increased communication volume and higher process counts per node, particularly in distributed configurations.
- The study confirms that identifying isomorphic neighborhoods enables substantial optimization opportunities that are currently underutilized in standard MPI implementations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.