[Paper Review] Enhancing the scalability and load balancing of the parallel selected inversion algorithm via tree-based asynchronous communication
This paper proposes a tree-based asynchronous communication scheme to enhance the scalability and load balancing of the parallel selected inversion (PSelInv) algorithm on distributed memory systems. By replacing standard collective communications with MPI_Isend/Irecv-based binary trees and applying a random rank-shifting heuristic, the method reduces communication imbalance and improves performance—achieving over 5x speedup at 6,400 processors and reducing runtime variation by more than a factor of four.
We develop a method for improving the parallel scalability of the recently developed parallel selected inversion algorithm [Jacquelin, Lin and Yang 2014], named PSelInv, on massively parallel distributed memory machines. In the PSelInv method, we compute selected elements of the inverse of a sparse matrix A that can be decomposed as A = LU, where L is lower triangular and U is upper triangular. Updating these selected elements of A-1 requires restricted collective communications among a subset of processors within each column or row communication group created by a block cyclic distribution of L and U. We describe how this type of restricted collective communication can be implemented by using asynchronous point-to-point MPI communication functions combined with a binary tree based data propagation scheme. Because multiple restricted collective communications may take place at the same time in the parallel selected inversion algorithm, we need to use a heuristic to prevent processors participating in multiple collective communications from receiving too many messages. This heuristic allows us to reduce communication load imbalance and improve the overall scalability of the selected inversion algorithm. For instance, when 6,400 processors are used, we observe over 5x speedup for test matrices. It also mitigates the performance variability introduced by an inhomogeneous network topology.
Motivation & Objective
- Address communication scalability and load imbalance in the parallel selected inversion (PSelInv) algorithm on large-scale distributed memory machines.
- Overcome limitations of standard MPI collective communications when restricted to arbitrary subsets of processors.
- Develop a scalable, asynchronous communication mechanism that avoids pre-allocated communicators and reduces performance variability on heterogeneous networks.
- Improve the efficiency of restricted collective communications in PSelInv, which are critical for large-scale electronic structure calculations.
- Enable efficient scaling of PSelInv beyond 4,000 processors for high-performance Kohn-Sham DFT simulations.
Proposed method
- Replace standard MPI collective operations with point-to-point asynchronous MPI_Isend and MPI_Irecv calls to simulate dynamic collective communication.
- Construct binary trees for data propagation among selected processors to minimize communication volume and message count.
- Implement a random circular shift heuristic on receiver ranks to prevent processors from becoming internal nodes in multiple trees simultaneously.
- Use a shifted binary tree structure to balance communication load and avoid hotspots in high-concurrency scenarios.
- Integrate the scheme into the PSelInv algorithm to support concurrent restricted communications across multiple processor groups.
- Evaluate performance using real test matrices (e.g., DG PNF14000, audikw1) on large-scale systems like Edison.
Experimental results
Research questions
- RQ1Can asynchronous point-to-point communication with tree-based data propagation outperform flat-tree or standard MPI collectives in restricted communication scenarios?
- RQ2How does a random rank-shifting heuristic affect communication load balancing when multiple collective communications occur concurrently?
- RQ3To what extent does the proposed method reduce runtime variability caused by inhomogeneous network topologies?
- RQ4What is the maximum scalable processor count achievable for PSelInv using this communication strategy?
- RQ5Can this approach be extended to asymmetric matrices while maintaining performance and load balance?
Key findings
- The shifted binary tree-based communication scheme achieved over 5x speedup when scaling from 1,024 to 6,400 processors on test matrices.
- Runtime standard deviation was reduced by more than a factor of four when using 6,400 processors, indicating improved performance consistency.
- The communication-to-computation ratio dropped from 11.8 (flat tree) to 1.9 (shifted binary tree) at 4,096 processors, significantly reducing communication overhead.
- Scalability was extended beyond 4,000 processors, with strong scaling demonstrated up to 6,400 processors, whereas the flat-tree version scaled only to under 1,024 processors.
- The heuristic reduced communication load imbalance by preventing processors from receiving excessive messages during concurrent operations.
- The method mitigated performance variability introduced by heterogeneous network architectures, enabling reliable large-scale execution of the PEXSI algorithm.
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.