HA-SpMM: A Hybrid Feature-Based Adaptive SpMM Algorithm on GPU

Sparse Matrix-Matrix Multiplication (SpMM) plays a key role in practical applications such as machine learning and neural networks. With the rapid development of parallel computing, accelerating SpMM on GPUs has become a current research focus. However, existing acceleration methods have not simultaneously considered the effects of matrix sparsity and GPU hardware parameters. In this article, we propose an efficient adaptive SpMM algorithm called HASpMM, which can automatically select suitable storage formats and load-balancing algorithms based on the hybrid feature of matrix sparsity and GPU hardware parameters. We first use CSR or COO format to store the matrix, and then we implement the load-balancing SpMM algorithm. Finally, we design a novel framework based on the hybrid feature to select the optimal storage format and SpMM algorithm for matrices. The experimental results demonstrate the effectiveness of our method. On all matrices in the Suite Sparse Matrix Collection, our method performs better than state-of-the-art SpMV methods (i.e. cuSPARSE SpMM, ASpT, GE-SpMM, and HPSpMM) on more than half of the matrices.

Authors

Institutions

Publication Details

Published
2024-11-01
DOI
https://doi.org/10.1109/cac63892.2024.10864726
Primary Topic
Advanced Image and Video Retrieval Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

HA-SpMM: A Hybrid Feature-Based Adaptive SpMM Algorithm on GPU

Shanxin Zhang, Hao Wang, Linbo Xie
1 links
Advanced Image and Video Retrieval Techniques
article

HA-SpMM: A Hybrid Feature-Based Adaptive SpMM Algorithm on GPU

Shanxin Zhang, Hao Wang, Linbo Xie
article en

Abstract

Sparse Matrix-Matrix Multiplication (SpMM) plays a key role in practical applications such as machine learning and neural networks. With the rapid development of parallel computing, accelerating SpMM on GPUs has become a current research focus. However, existing acceleration methods have not simultaneously considered the effects of matrix sparsity and GPU hardware parameters. In this article, we propose an efficient adaptive SpMM algorithm called HASpMM, which can automatically select suitable storage formats and load-balancing algorithms based on the hybrid feature of matrix sparsity and GPU hardware parameters. We first use CSR or COO format to store the matrix, and then we implement the load-balancing SpMM algorithm. Finally, we design a novel framework based on the hybrid feature to select the optimal storage format and SpMM algorithm for matrices. The experimental results demonstrate the effectiveness of our method. On all matrices in the Suite Sparse Matrix Collection, our method performs better than state-of-the-art SpMV methods (i.e. cuSPARSE SpMM, ASpT, GE-SpMM, and HPSpMM) on more than half of the matrices.

Jiangnan University (CN)
Affordable and clean energy
Openalex Percentile: Top 73%
Advanced Image and Video Retrieval Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.