## High-Performance and Memory-Saving Sparse General Matrix-Matrix Multiplication for NVIDIA Pascal GPU

2017 46th International Conference on Parallel Processing (ICPP) (2017)

Bristol, United Kingdom

Aug. 14, 2017 to Aug. 17, 2017

ISSN: 2332-5690

ISBN: 978-1-5386-1042-8

pp: 101-110

DOI Bookmark: http://doi.ieeecomputersociety.org/10.1109/ICPP.2017.19

ABSTRACT

Sparse general matrix-matrix multiplication (SpGEMM) is one of the key kernels of preconditioners such as algebraic multigrid method or graph algorithms. However, the performance of SpGEMM is quite low on modern processors due to random memory access to both input and output matrices. As well as the number and the pattern of non-zero elements in the output matrix, important for achieving locality, are unknown before the execution. Moreover, the state-of-the-art GPU implementations of SpGEMM requires large amounts of memory for temporary results, limiting the matrix size computable on fast GPU device memory. We propose a new fast SpGEMM algorithm requiring small amount of memory and achieving high performance. Calculation of the pattern and value in output matrix is optimized by using GPU's on-chip shared memory and a hash table. Additionally, our algorithm launches multiple kernels running concurrently to improve the utilization of GPU resources. The kernels for the calculation of each row of output matrix are chosen based on the number of non-zero elements. Performance evaluation using matrices from the Sparse Matrix Collection of University Florida on NVIDIA's Pascal generation GPU shows that our approach achieves speedups of up to x4.3 in single precision and x4.4 in double precision compared to existing SpGEMM libraries. Furthermore, the memory usage is reduced by 14.7% in single precision and 10.9% in double precision on average, allowing larger matrices to be computed.

INDEX TERMS

Sparse matrices, Graphics processing units, Memory management, Acceleration, Instruction sets, Kernel, Parallel processing

CITATION

Y. Nagasaka, A. Nukada and S. Matsuoka, "High-Performance and Memory-Saving Sparse General Matrix-Matrix Multiplication for NVIDIA Pascal GPU,"

*2017 46th International Conference on Parallel Processing (ICPP)*, Bristol, United Kingdom, 2017, pp. 101-110.

doi:10.1109/ICPP.2017.19

CITATIONS