Mixed-Precision Iterative Refinement using Tensor Cores on GPUs to Accelerate Solution of Linear Systems

TitleMixed-Precision Iterative Refinement using Tensor Cores on GPUs to Accelerate Solution of Linear Systems
Publication TypeJournal Article
Year of Publication2020
AuthorsHaidar, A., H. Bayraktar, S. Tomov, J. Dongarra, and N. J. Higham
JournalProceedings of the Royal Society A
Volume476
Issue2243
Date Published2020-11
ISSN1471-2946
KeywordsGMRESLU factorization, GPU computing, half precision arithmetic, iterative refinement, mixed precision solvers
Abstract

Double-precision floating-point arithmetic (FP64) has been the de facto standard for engineering and scientific simulations for several decades. Problem complexity and the sheer volume of data coming from various instruments and sensors motivate researchers to mix and match various approaches to optimize compute resources, including different levels of floating-point precision. In recent years, machine learning has motivated hardware support for half-precision floating-point arithmetic. A primary challenge in high-performance computing is to leverage reduced-precision and mixed-precision hardware. We show how the FP16/FP32 Tensor Cores on NVIDIA GPUs can be exploited to accelerate the solution of linear systems of equations Ax = b without sacrificing numerical stability. The techniques we employ include multiprecision LU factorization, the preconditioned generalized minimal residual algorithm (GMRES), and scaling and auto-adaptive rounding to avoid overflow. We also show how to efficiently handle systems with multiple right-hand sides. On the NVIDIA Quadro GV100 (Volta) GPU, we achieve a 4×−5× performance increase and 5× better energy efficiency versus the standard FP64 implementation while maintaining an FP64 level of numerical stability.

DOI10.1098/rspa.2020.0110
Project Tags: 
External Publication Flag: