[Paper Review] s-Step Orthomin and GMRES implemented on parallel computers
This paper proposes s-step Orthomin and GMRES methods to improve data locality and parallelism in solving large nonsymmetric linear systems on hierarchical memory supercomputers. By forming s simultaneous search directions via block operations (BLAS3), the methods reduce memory traffic and communication overhead, achieving up to 1.5x performance speedup on Cray-2 for unpreconditioned problems and 1.3x for preconditioned cases, especially when matrix-vector multiplication is optimized with local memory usage.
The Orthomin ( Omin ) and the Generalized Minimal Residual method ( GMRES ) are commonly used iterative methods for approximating the solution of non-symmetric linear systems. The s-step generalizations of these methods enhance their data locality parallel and properties by forming s simultaneous search direction vectors. Good data locality is the key in achieving near peak rates on memory hierarchical supercomputers. The theoretical derivation of the s-step Arnoldi and Omin has been published in the past. Here we derive the s-step GMRES method. We then implement s-step Omin and GMRES on a Cray-2 hierarchical memory supercomputer.
Motivation & Objective
- To enhance data locality and parallelism in iterative solvers for nonsymmetric linear systems on hierarchical memory architectures.
- To reduce memory bandwidth bottlenecks by aggregating multiple iterations into block operations using BLAS3 routines.
- To derive and implement s-step GMRES, extending prior work on s-step Orthomin and Arnoldi methods.
- To evaluate performance gains on the Cray-2 supercomputer using finite difference discretizations of PDEs.
- To optimize matrix-vector multiplication using Cray Assembly Language (CAL) to leverage local memory and further improve performance.
Proposed method
- Derives the s-step GMRES method by generalizing the standard GMRES algorithm using s simultaneous search directions generated via repeated matrix-vector products.
- Uses BLAS3 operations (e.g., GAXPY, dot products) to form s-direction vectors, reducing the ratio of memory references to floating-point operations by a factor of s.
- Implements s-step Orthomin and GMRES on the Cray-2, exploiting its vector pipelines, local memory, and single-path memory architecture.
- Applies ILU(0) preconditioning to improve convergence and reduce iteration count.
- Optimizes matrix-vector multiplication using hand-coded Cray Assembly Language (CAL) to utilize local memory and minimize main memory access.
- Unrolls linear combinations into single GAXPY operations to improve instruction-level parallelism and reduce loop overhead.
Experimental results
Research questions
- RQ1Can s-step methods significantly reduce memory traffic and improve performance on hierarchical memory supercomputers like the Cray-2?
- RQ2How does the s-step GMRES method compare to standard GMRES in terms of convergence and execution time?
- RQ3What is the impact of block size s on convergence behavior and performance, especially when matrix-vector multiplication is costly?
- RQ4Can local memory usage in matrix-vector multiplication be exploited via low-level assembly to achieve higher performance?
- RQ5Does the s-step approach maintain the same convergence properties as standard methods while reducing communication and synchronization overhead?
Key findings
- The s-step Orthomin(2) method achieved a 1.5x performance speedup over standard Orthomin(4) on the Cray-2 for unpreconditioned systems.
- The s-step GMRES(2) method achieved a 1.3x speedup over standard GMRES(10), though gains were reduced when preconditioning was applied due to the low megaflop rate of the preconditioner.
- For the same problem size, s-GMRES(2) required the same number of iterations as GMRES(10), confirming that s-step methods preserve convergence behavior.
- The number of iterations for s-Omin(k) and s-GMRES(m) was comparable to standard methods, but execution times were significantly reduced due to improved data locality.
- Unrolling loops for BLAS3 operations did not improve performance, indicating that the bottleneck was not loop overhead but memory access patterns.
- The authors expect further performance gains by implementing matrix-vector multiplication in Cray Assembly Language (CAL) to fully exploit local memory and reduce main memory bandwidth pressure.
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.