How to grade the accuracy of the BLAS
James Demmel, Greg Henry, Igor Kozachenko, Julien Langou, Xiaoye Sherry Li, Jason Riedy, Jackson Vanover
Abstract
Motivated by accelerating machine learning (ML), many computer vendors and chip manufacturers are building accelerators for matrix multiplication, which save time and energy by operating in the lower precisions needed for ML. This has in turn motivated many efforts to use these accelerators to provide faster matrix multiplication implementations with the higher precision required by many other linear algebra applications. Motivated by the large design space of algorithms for approximating higher precision, with significant performance/accuracy tradeoffs, we provide a benchmark to "grade the accuracy" of a matrix multiplication implementation (or the BLAS more generally), ranging from an "A" for attaining the classic floating point error bound, to a "C" for attaining a weaker but still useful bound, that is satisfied by Strassen-like algorithms. We also propose "ungameable" tests that vendors or users can run to verify their promised accuracy, and describe how these different grades impact the accuracy of applications like LU, QR, and Cholesky decomposition. Our test code is publicly available at github.com/Reference-LAPACK/grading-the-BLAS for developers and users, and we also plan to publicly release all our test results.
Create a lesson
Metadata
- Categories
- math.NA, cs.NA
Related papers
Nonconvex Stochastic Gradient Sampling at Second Order Accuracy via Noise Correction
Shared title terminologymath.NAXuda Ye, Yuliang Wang, Guang Lin et al.
Improving the accuracy of the fictitious domain method in domains with embedded inclusions
Shared title terminologymath.NAGregorio Casella, Francesco Regazzoni
When Do Sketches Achieve Gaussian Accuracy in Randomized SVD? A Geometric Perspective
Shared title terminologymath.NAYuning Yang
Graded cubature with quasi-Monte Carlo designs for weakly singular integrals on the sphere
Shared title terminologymath.NAHao-Ning Wu
Numerical Analysis of Fully Nonlocal Partial Differential Equations Using Graded Meshes
Shared title terminologymath.NATapaswini Sahu, Swati Yadav
Cost-Accuracy Trade-offs: Neural Operator vs Classical Numerical Solver
Shared title terminologymath.NADaniel Zhengyu Huang, Andrew M. Stuart