A Guide for Achieving High Performance with Very Small Matrices on GPU: A Case Study of Batched LU and Cholesky Factorizations
- 15 December 2017
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Parallel and Distributed Systems
- Vol. 29 (5) , 973-984
Abstract
We present high-performance results with a high speed-up over vendor libraries for very small matrix computations. In addition, we discuss most of the challenges that prevent from designing efficient GPU kernels for small matrix algorithms. We propose relevant algorithm analysis to harness the full power of a GPU, and strategies for predicting the performance spectrum, before a proper implementation. We develop a theoretical analysis and a methodology for high-performance linear solvers for very small matrices. As test cases, we take the Cholesky and LU factorization and show how the proposed methodology allows us to achieve a performance close to the theoretical upper bound. This work investigates and proposes novel algorithms for designing highly optimized GPU kernels for solving batches of hundred of thousands of small size Cholesky and LU factorization. Our focus on efficient batched Cholesky and batched LU kernels is motivated by the increasing need of such kernel in scientific simulations such as astrophysics applications. Techniques for optimal memory traffic, register blocking, and tunable concurrency are incorporated in our proposed design. The proposed GPU kernels achieve performance speedups vs. CUBLAS of up to $6 \times$ for the factorization, using double precision arithmetic on a Pascal P100 GPU.
Keywords
Funding Information
- National Science Foundation (CSR 1514286, OAC 1740250)
- Nvidia
- Department of Energy
This publication has 20 references indexed in Scilit:
- Efficient Implementation of Hyperspectral Anomaly Detection Techniques on GPUs and Multicore ProcessorsIEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing, 2014
- A Step towards Energy Efficient Computing: Redesigning a Hydrodynamic Application on CPU-GPU2014
- Long Timestep Molecular Dynamics on the Graphical Processing UnitJournal of Chemical Theory and Computation, 2013
- Explicit integration of extremely stiff reaction networks: partial equilibrium methodsComputational Science & Discovery, 2013
- Performance characterization of global address space applications: a case study with NWChemConcurrency and Computation: Practice and Experience, 2011
- Towards dense linear algebra for hybrid GPU accelerated manycore systemsParallel Computing, 2010
- RooflineCommunications of the ACM, 2009
- Terascale direct numerical simulations of turbulent combustion using S3DComputational Science & Discovery, 2009
- Automatic code generation for many-body electronic structure methods: the tensor contraction engine‡‡Molecular Physics, 2006
- Silicon Burning. II. Quasi‐Equilibrium and Explosive BurningThe Astrophysical Journal, 1999