Design Principles for Sparse Matrix Multiplication on the GPU

Carl Yang, Aydin Buluc, John D. Owens
3/22/2018
cs.DC

Official code: owensgroup/merge-spmm (75 stars, C++, Apache-2.0, last commit 2020-10-05).

Abstract

We implement two novel algorithms for sparse-matrix dense-matrix multiplication (SpMM) on the GPU. Our algorithms expect the sparse input in the popular compressed-sparse-row (CSR) format and thus do not require expensive format conversion.

Show full abstract

While previous SpMM work concentrates on thread-level parallelism, we additionally focus on latency hiding with instruction-level parallelism and load-balancing. We show, both theoretically and experimentally, that the proposed SpMM is a better fit for the GPU than previous approaches. We identify a key memory access pattern that allows efficient access into both input and output matrices that is crucial to getting excellent performance on SpMM. By combining these two ingredients---(i) merge-based load-balancing and (ii) row-major coalesced memory access---we demonstrate a 4.1x peak speedup and a 31.7% geomean speedup over state-of-the-art SpMM implementations on real-world datasets.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Code for paper "Design Principles for Sparse Matrix Multiplication on the GPU" accepted to Euro-Par 2018

7512C++, CudaJun 9, 20186 years agoApache-2.0

Similar Papers

Cite this paper

@article{yang2018design,
  title  = {Design Principles for Sparse Matrix Multiplication on the GPU},
  author = {Carl Yang and Aydin Buluc and John D. Owens},
  year   = {2018},
  eprint = {1803.08601},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1803.08601}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1803.08601.svg)](https://codeofpaper.com/paper/1803.08601)

Discussion