[Paper Review] PSelInv -- A Distributed Memory Parallel Algorithm for Selected Inversion : the Symmetric Case
PSelInv is a scalable, distributed-memory parallel algorithm for computing selected elements of the inverse of sparse symmetric matrices using sparse LU factorization with dynamic load balancing via elimination tree traversal. It achieves high performance on over 4,000 cores and enables significant speedups—up to 127×—in large-scale electronic structure calculations, particularly for systems with up to 32,768 atoms.
We describe an efficient parallel implementation of the selected inversion algorithm for distributed memory computer systems, which we call exttt{PSelInv}. The exttt{PSelInv} method computes selected elements of a general sparse matrix $A$ that can be decomposed as $A = LU$, where $L$ is lower triangular and $U$ is upper triangular. The implementation described in this paper focuses on the case of sparse symmetric matrices. It contains an interface that is compatible with the distributed memory parallel sparse direct factorization exttt{SuperLU\_DIST}. However, the underlying data structure and design of exttt{PSelInv} allows it to be easily combined with other factorization routines such as exttt{PARDISO}. We discuss general parallelization strategies such as data and task distribution schemes. In particular, we describe how to exploit the concurrency exposed by the elimination tree associated with the $LU$ factorization of $A$. We demonstrate the efficiency and accuracy of exttt{PSelInv} by presenting a number of numerical experiments. In particular, we show that exttt{PSelInv} can run efficiently on more than $4,000$ cores for a modestly sized matrix. We also demonstrate how exttt{PSelInv} can be used to accelerate large-scale electronic structure calculations.
Motivation & Objective
- Address the need for efficient computation of selected inverse elements in large-scale scientific simulations, particularly in electronic structure theory.
- Overcome the limitations of full matrix inversion, which is prohibitively expensive for large sparse matrices.
- Develop a scalable, high-performance parallel algorithm for selected inversion that leverages sparsity and concurrency in the elimination tree structure.
- Enable efficient computation of trace estimations and diagonal elements of the inverse matrix for applications in density functional theory and dynamical mean field theory.
- Achieve strong scalability on distributed memory architectures for matrices up to 32,768 atoms, outperforming traditional diagonalization methods at scale.
Proposed method
- Utilizes sparse LU factorization (L and U) of symmetric matrices to compute a superset of selected inverse elements, avoiding full inverse computation.
- Employs an elimination tree-based traversal strategy to exploit task-level parallelism and data locality in the factorization process.
- Integrates with existing distributed memory sparse direct solvers such as SuperLU DIST and PARDISO via a compatible interface.
- Applies dynamic load balancing across processors by mapping elimination tree nodes to compute tasks, maximizing concurrency.
- Uses supernodal data structures to group computations and reduce communication overhead in distributed memory environments.
- Combines with the PEXSI framework to accelerate large-scale electronic structure calculations via selected inversion of the Hamiltonian matrix.
Experimental results
Research questions
- RQ1Can selected inversion of sparse symmetric matrices be efficiently parallelized on distributed memory systems with thousands of cores?
- RQ2How does the performance of PSelInv scale with increasing problem size and number of processors in large-scale electronic structure calculations?
- RQ3To what extent can PSelInv reduce computational cost compared to full matrix diagonalization in large-scale simulations?
- RQ4How does PSelInv maintain numerical accuracy for highly indefinite or ill-conditioned matrices?
- RQ5Can PSelInv be effectively integrated with existing sparse direct solvers like SuperLU DIST and PARDISO in production HPC workflows?
Key findings
- PSelInv scales efficiently on more than 4,000 cores, demonstrating strong scalability for matrices up to 32,768 atoms.
- For a 32,768-atom graphene system, PSelInv achieved a total wall clock time of 241 seconds (87 seconds for selected inversion) on 327,680 cores, a 127-fold speedup over diagonalization.
- The method reduced the wall clock time for the 8,192-atom system from 21,556 seconds (diagonalization) to 45 seconds using PEXSI with PSelInv, achieving a 127× speedup.
- PSelInv maintains high numerical accuracy even for highly indefinite and nearly singular matrices, as validated through extensive numerical experiments.
- The algorithm outperforms traditional diagonalization methods in terms of wall clock time at scale, with projected diagonalization times exceeding 1,000 seconds on 1 million cores, while PSelInv remains under 250 seconds.
- The combination of PSelInv with the PEXSI framework enables practical large-scale electronic structure calculations previously infeasible due to cubic scaling of diagonalization.
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.