Advancing on an efficient sparse matrix multiplication kernel for modern GPUs
- 19 August 2022
- journal article
- research article
- Published by Wiley in Concurrency and Computation: Practice and Experience
- Vol. 35 (20)
Abstract
Summary: The sparse matrix multiplication (SpGeMM) increased its importance in the last years due to its data science and machine learning applications. Consequently, considerable research has focused on accelerating this kernel in GPUs. Designing massively‐parallel algorithms for the SpGeMM is a challenging task since the computation pattern is highly irregular, and the required memory and operations depend on the interaction between the nonzero layout of the inputs. One strategy to attack this kernel consists of proposing new sparse matrix storage formats that contribute to mitigating this irregularity. In previous work, we commenced a study of the recently proposed bmSparse matrix format, suggesting several modifications to the SpGeMM algorithm. This work integrates the previous extensions and proposes new improvements to unleash bmSparse's full potential before comparing it to more consolidated options. In particular, we enhance one of the most computationally demanding stages with an adaptive technique, apply optimizations to achieve more efficient data accesses, and analyze the effect of using Tensor Cores to accelerate the multiplication stage of the algorithm. The experimental results on a set of real‐world sparse matrices show that the optimized implementation largely outperforms vendor implementations such as NVIDIA cuSparse Intel MKL‐CSR variant, while being competitive with MKL's‐BSR.Keywords
Funding Information
- Universidad de la República Uruguay
- PEDECIBA
This publication has 9 references indexed in Scilit:
- Unleashing the performance of bmSparse for the sparse matrix multiplication in GPUs2021
- Demystifying Tensor Cores to Optimize Half-Precision Matrix Multiply2020
- A new golden age for computer architectureCommunications of the ACM, 2019
- Graph algorithms via SuiteSparse: GraphBLAS: triangle counting and K-truss2018
- Regularizing irregularity2018
- Fast segmented sort on GPUs2017
- On the performance and energy efficiency of sparse linear algebra on GPUsThe International Journal of High Performance Computing Applications, 2016
- The university of Florida sparse matrix collectionACM Transactions on Mathematical Software, 2011
- High-Performance Graph Algorithms from Parallel Sparse Matrices2007