Performance impact of precision reduction in sparse linear systems solvers
Authors:
Open Access
- 17 January 2022
- journal article
- research article
- Published by PeerJ in PeerJ Computer Science
- Vol. 8, e778
Abstract
It is well established that reduced precision arithmetic can be exploited to accelerate the solution of dense linear systems. Typical examples are mixed precision algorithms that reduce the execution time and the energy consumption of parallel solvers for dense linear systems by factorizing a matrix at a precision lower than the working precision. Much less is known about the efficiency of reduced precision in parallel solvers for sparse linear systems, and existing work focuses on single core experiments. We evaluate the benefits of using single precision arithmetic in solving a double precision sparse linear system using multiple cores. We consider both direct methods and iterative methods and we focus on using single precision for the key components of LU factorization and matrix–vector products. Our results show that the anticipated speedup of 2 over a double precision LU factorization is obtained only for the very largest of our test problems. We point out two key factors underlying the poor speedup. First, we find that single precision sparse LU factorization is prone to a severe loss of performance due to the intrusion of subnormal numbers. We identify a mechanism that allows cascading fill-ins to generate subnormal numbers and show that automatically flushing subnormals to zero avoids the performance penalties. The second factor is the lack of parallelism in the analysis and reordering phases of the solvers and the absence of floating-point arithmetic in these phases. For iterative solvers, we find that for the majority of the matrices computing or applying incomplete factorization preconditioners in single precision provides at best modest performance benefits compared with the use of double precision. We also find that using single precision for the matrix–vector product kernels provides an average speedup of 1.5 over double precision kernels. In both cases some form of refinement is needed to raise the single precision results to double precision accuracy, which will reduce performance gains.Keywords
Funding Information
- Innovate UK (KTP011064)
- The Engineering and Physical Sciences Research Council (EP/P020720/1)
- The Royal Society
This publication has 31 references indexed in Scilit:
- A fast and robust mixed-precision solver for the solution of sparse symmetric linear systemsACM Transactions on Mathematical Software, 2010
- Numerical linear algebra on emerging architectures: The PLASMA and MAGMA projectsJournal of Physics: Conference Series, 2009
- Using Mixed Precision for Sparse Matrix Computations to Enhance the Performance while Achieving 64-bit AccuracyACM Transactions on Mathematical Software, 2008
- Mixed Precision Iterative Refinement Techniques for the Solution of Dense Linear SystemsThe International Journal of High Performance Computing Applications, 2007
- An overview of SuperLUACM Transactions on Mathematical Software, 2005
- Algorithm 832ACM Transactions on Mathematical Software, 2004
- SuperLU_DISTACM Transactions on Mathematical Software, 2003
- Analysis and comparison of two general sparse solvers for distributed memory computersACM Transactions on Mathematical Software, 2001
- PARDISO: a high-performance serial and parallel sparse linear solver in semiconductor device simulationFuture Generation Computer Systems, 2001
- Multifrontal parallel distributed symmetric and unsymmetric solversComputer Methods in Applied Mechanics and Engineering, 2000