Efficient Sparse-Dense Matrix-Matrix Multiplication on GPUs Using the Customized Sparse Storage Format
Not on the map. Why?
Abstract (arXiv)
Multiplication of a sparse matrix to a dense matrix (SpDM) is widely used in many areas like scientific computing and machine learning. However, existing works under-look the performance optimization of SpDM on modern many-core architectures like GPUs. The storage data structures help sparse matrices store in a memory-saving format, but they bring difficulties in optimizing the performance of SpDM on modern GPUs due to irregular data access of the sparse structure, which results in lower resource utilization and poorer performance. In this paper, we refer to the roofline performance model of GPUs to design an efficient SpDM algorithm called GCOOSpDM, in which we exploit coalescent global memory access, fast shared memory reuse and more operations per byte of global memory traffic. Experiments are evaluated on three Nvidia GPUs (i.e., GTX 980, GTX Titan X Pascal and Tesla P100) with CUDA-8.0 using a large number of matrices including a public dataset and randomly generated matrices. Experimental results show that GCOOSpDM achieves 1.5-8× speedup over Nvidia's library cuSPARSE in many matrices. We also analyze instruction-level operations on a particular GPU to understand the performance gap between GCOOSpDM and cuSPARSE. The profiled instructions confirm that cuSPARSE spends a lot of time on slow memory access (including DRAM access and L2 cache access), while GCOOSpDM transfers such slow memory access to faster shared memory, which mainly contributes to the performance gain. Results also show that GCOOSpDM would outperform the dense algorithm (cuBLAS) with lower sparsity than cuSPARSE on GPUs.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). First posted on arXiv 29 May 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2023: 1; 2024: 4.
5 papers.
- 2024SLEB: Streamlining LLMs through Redundancy Verification and Elimination of Transformer Blockscited by 96
- 2023Cached Operator Reordering: A Unified View for Fast GNN Trainingcited by 5
- 2024Optimal Gradient Checkpointing for Sparse and Recurrent Architectures using Off-Chip Memorycited by 3
- 2024NeuroFlux: Memory-Efficient CNN Training Using Adaptive Local Learningcited by 1
- 2024FiRST: Finetuning Router-Selective Transformers for Input-Adaptive Latency Reductioncited by 0
- 2024Optimal Gradient Checkpointing for Sparse and Recurrent Architectures using Off-Chip Memory16 Dec 2024
- 2024FiRST: Finetuning Router-Selective Transformers for Input-Adaptive Latency Reduction16 Oct 2024
- 2024NeuroFlux: Memory-Efficient CNN Training Using Adaptive Local Learning21 Feb 2024
- 2024SLEB: Streamlining LLMs through Redundancy Verification and Elimination of Transformer Blocks14 Feb 2024
- 2023Cached Operator Reordering: A Unified View for Fast GNN Training23 Aug 2023