Efficient Sparse Matrix-Vector Multiplication on GPUs Using the CSR Storage Format
Joseph L. Greathouse, Mayank Daga · 2012 International Conference for High Performance Computing, Networking, Storage and Analysis · 2014
The performance of sparse matrix vector multiplication (SpMV) is important to computational scientists. Compressed sparse row (CSR) is the most frequently used format to store sparse matrices. However, CSR-based SpMV on graphics processing units (GPUs) has poor performance due to irregular memory access patterns, load imbalance, and reduced parallelism. This has led researchers to propose new storage formats. Unfortunately, dynamically transforming CSR into these formats has significant runtime and storage overheads. We propose a novel algorithm, CSR-Adaptive, which keeps the CSR format intact and maps well to GPUs. Our implementation addresses the aforementioned challenges by (i) efficiently accessing DRAM by streaming data into the local scratchpad memory and (ii) dynamically assigning different numbers of rows to each parallel GPU compute unit. CSR-Adaptive achieves an average speedup of 14.7× over existing CSR-based algorithms and 2.3× over clSpMV cocktail, which uses an assortment of matrix formats.
Cited by 246 works. doi:10.1109/sc.2014.68
Authors
References
- Numerical linear algebra
- Numerical Linear Algebra
- Scalable parallel programming with CUDA
- Scalable Parallel Programming with CUDA
- Optimization of sparse matrix-vector multiplication on emerging multicore platforms
- Implementing sparse matrix-vector multiplication on throughput-oriented processors
- The OpenCL specification
- The Scalable Heterogeneous Computing (SHOC) benchmark suite
- OSKI: A library of automatically tuned sparse matrix kernels
- Automatic performance tuning of sparse matrix kernels