Design Principles for Sparse Matrix Multiplication on the GPU
Design Principles for Sparse Matrix Multiplication on the GPU
复制标题
DOI:
10.1007/978-3-319-96983-1_48
复制
发表时间:
2018-03
期刊:
影响因子:
--
通讯作者:
Carl Yang;A. Buluç;John Douglas Owens
中科院分区:
文献类型:
--
作者:
Carl Yang;A. Buluç;John Douglas Owens
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. 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.1peak speedup and a 31.7% geomean speedup over state-of-the-art SpMM implementations on real-world datasets.