Published in the International Journal of High Performance Computing Applications, this research presents a significant advancement in hierarchical matrix solvers, enabling them to operate at unprecedented scales on modern GPU clusters. By introducing an "inherently parallel" $\mathcal{H}^2$-ULV factorization, the authors have effectively eliminated the serial bottlenecks that have long plagued hierarchical matrix algorithms.
The Challenge: GPU-Unfriendly Hierarchical Solvers
Many scientific domains, including electromagnetics and large-scale statistics, rely on solving systems involving massive, dense matrices. While standard solvers like those found in LAPACK require $O(N^3)$ operations, hierarchical matrix formats (such as $\mathcal{H}$, $\mathcal{H}^2$, and HSS) exploit the low-rank nature of off-diagonal sub-blocks to reduce this complexity to $O(N)$.
Despite their theoretical efficiency, these algorithms have historically been difficult to port to GPUs. Their complex tree-based structures often lead to significant load imbalances. More critically, the "trailing submatrix updates" performed during factorization typically create a chain of data dependencies, forcing much of the computation to occur serially. Furthermore, the subsequent forward and backward substitution phases (solving $Ax=b$) have remained stubbornly serial, creating a performance bottleneck even when factorization is fast.
The Innovation: Factorization Basis and Shared Structures
The core of the proposed method is the use of a shared low-rank basis to represent the matrix structure efficiently.
To overcome the dependency problem, the authors introduced a Factorization Basis. In traditional ULV (Unitary-Low-rank-V) factorization, eliminating one block creates "fill-in" updates in other blocks, necessitating constant re-compression and enforcing a serial execution order.
The researchers proved mathematically that by pre-computing a specific basis that approximates all potential Schur complements and merging it into the matrix's shared basis before factorization begins, the updates can be confined strictly to diagonal blocks. This "over-approximation" allows the matrix structure to remain sparse and decoupled throughout the entire process.
Inherently Parallel Substitution and GPU Optimization
Beyond factorization, the authors reformulated the solve phase. Instead of the standard serial triangular solve, they inverted the block-triangular factors into a product of sparse matrices. This transformation turns the solve phase into a series of independent, parallel matrix-vector multiplications.
The implementation is highly optimized for NVIDIA hardware, utilizing batched kernels (cuBLAS, MAGMA) to process thousands of small matrix operations simultaneously. For multi-GPU scaling, the NVIDIA Collective Communications Library (NCCL) ensures efficient data movement across the cluster.
Performance Results
The solver was evaluated using massive 3-D Laplace and Yukawa potential problems, with systems reaching up to 29 million unknowns. The results demonstrate a new state-of-the-art for hierarchical solvers:
- Extreme Speedup: On 128 sockets, the method was over 13,300x faster than LORAPO, a leading CPU-based solver.
- High Efficiency: The solver achieved 12.18 TFLOP/s on a single NVIDIA A100 GPU, reaching approximately 62.5% of the theoretical peak FP64 performance.
- Massive Scaling: The algorithm demonstrated excellent strong and weak scaling up to 512 GPUs on the ABCI supercomputer. A problem with 29,242,368 unknowns was factorized and solved in just 0.83 seconds.
Conclusion and Future Directions
By trading a small amount of extra work upfront—the pre-factorization required to find the factorization basis—the authors unlocked massive parallelism. While this pre-factorization currently accounts for up to 46% of the total time, the overall speedup remains transformative. Future work will focus on reducing this overhead and extending the method to general non-symmetric LU factorizations with pivoting, potentially integrating the solver into large-scale Gaussian process regression and fast multipole method (FMM) pipelines.
Summary updated