TL;DR
This paper presents a highly parallel algorithm for threshold-based incomplete LU (ILUT) factorization, a crucial component for solving large sparse linear systems with iterative methods. By leveraging parallel graph partitioning and maximal independent set algorithms, they demonstrate significant speedups on distributed-memory parallel computers, making ILUT a viable option for high-performance computing.
What Problem Does This Paper Address?
Solving large sparse linear systems is a fundamental problem in many scientific and engineering domains, particularly in finite element applications. Iterative methods are often preferred over direct methods for these large systems due to memory and computational constraints. A key bottleneck in iterative solvers is the "preconditioner," which aims to improve the convergence rate of the iterative method. Incomplete LU (ILU) factorizations, specifically threshold-based ILUT, are effective preconditioners but have historically been difficult to parallelize efficiently on distributed-memory systems. This difficulty stems from the dynamic nature of fill elements and the challenge of parallelizing the subsequent triangular solves. This paper tackles the problem of developing a scalable and efficient parallel ILUT factorization and its associated triangular solvers for distributed-memory architectures.
Methods
The authors propose a parallel ILUT factorization algorithm that builds upon a general framework for parallel sparse factorization. The core of their approach involves:
- Parallel Multilevel k-way Graph Partitioning: This is used to distribute the sparse matrix across processors, minimizing the number of "interface" nodes (rows connected to nodes on other processors). This initial partitioning is crucial for reducing communication overhead.
- Parallel Maximal Independent Set (MIS) Computation: For the interface nodes, which are factored iteratively, the algorithm repeatedly finds maximal independent sets. Nodes within an independent set can be processed concurrently. They adapt Luby's algorithm for MIS computation, optimizing it for parallel execution and reducing the number of augmentation steps.
- Modified ILUT Algorithm (ILUT*): To address the issue of dense reduced matrices that arise during the factorization of interface nodes, they introduce ILUT*. This modification limits the number of non-zero elements kept in the reduced matrices, effectively controlling fill and reducing communication and memory requirements.
- Parallel Triangular Solvers: The forward and backward substitution steps, essential for applying the preconditioner, are also parallelized using a two-phase approach similar to the factorization. This involves solving for interior nodes locally and then iteratively solving for interface nodes using the computed independent sets.
Datasets
The authors evaluated their algorithms on two representative matrices:
- G40: A PDE discretized on a 40x40x40 grid, resulting in a system with 54,872 equations and 164,616 non-zeros.
- TORSO: A finite element matrix from simulating ECG fields of the human thorax, with 201,142 equations and 1,479,989 non-zeros.
These matrices represent typical problems encountered in scientific computing. No new benchmarks were introduced; rather, these are standard test cases for evaluating sparse solvers.
Key Insights and Ideas
- ILUT's Parallelization Challenge: The dynamic nature of fill elements in ILUT makes it inherently harder to parallelize than static sparsity pattern methods like ILU(0). The paper shows how to overcome this by dynamically computing independent sets.
- The "Reduced Matrix" Bottleneck: The intermediate "reduced matrices" formed during the factorization of interface nodes can become very dense, leading to increased computation and communication.
- ILUT* as a Performance Booster: The ILUT* modification, by limiting fill in reduced matrices, significantly improves parallel performance and scalability, especially for larger numbers of processors, without a drastic loss in preconditioning quality.
- Scalable Triangular Solvers are Crucial: The effectiveness of ILUT as a preconditioner hinges on efficient parallel triangular solvers. The paper demonstrates that their parallel solvers achieve good speedups, making the overall preconditioning process efficient.
Key Results
- Significant Speedups: The parallel ILUT and ILUT* algorithms achieved substantial speedups on a Cray T3D, particularly as the number of processors increased. For instance, on 128 processors, speedups were observed to be significantly better than those achieved on 16 processors.
- ILUT* Outperforms ILUT: The modified ILUT algorithm generally showed better or comparable speedups to the original ILUT, especially for lower threshold values (t) and higher processor counts. For example, on 128 processors, ILUT was 2.7 times faster than ILUT for a specific factorization.
- Comparable Preconditioning Quality: When used with the GMRES iterative solver, ILUT demonstrated preconditioning quality comparable to ILUT. For some configurations, ILUT required fewer iterations or converged faster overall, despite sometimes requiring more iterations.
- Efficient Triangular Solvers: The parallel forward and backward substitution algorithms were shown to be efficient, with performance close to that of matrix-vector multiplication, indicating good scalability and low communication overhead.
Limitations and Future Work
- Parameter Sensitivity: The performance and quality of ILUT and ILUT* are sensitive to the choice of parameters
m(maximum non-zeros per row) andt(threshold). Finding optimal parameters can require experimentation. - ILUT* Quality vs.
k: Whilek=2in ILUT provided comparable quality to ILUT, a more comprehensive study is needed to characterize ILUT's convergence characteristics for different values ofk. - Alternative Parallel Formulation: The authors suggest that for denser ILUT/ILUT* factorizations, an alternative parallel formulation utilizing graph partitioning for a second level of concurrency on interface rows could be beneficial. This would involve a p-way partitioning of the interface rows and concurrent factorization of sub-domains.
Summary updated