A General Optimization Method for SpMV Based on Graph Partitioning and Matrix Reordering
With the rising demand for the performance of sparse matrix-vector multiplication (SpMV) in various fields, traditional optimization approaches for SpMV computation, which are designed specifically for certain domains, encounter the issue of limited data applicability. Moreover, as SpMV computation is memory-access intensive, the inefficiency of vector memory access emerges as a significant performance bottleneck. This paper proposes a comprehensive optimization scheme integrating graph partitioning and matrix reordering techniques. By transforming the sparse matrix into a graph and performing partitioning and reordering, the distribution of nonzero elements is effectively changed, the memory access order is adjusted, and the data locality is significantly improved, thereby enhancing the memory access efficiency and overall computational performance. Experimental results show that this method successfully increases the sparsity within the diagonal range by an average of 9.51 times, and the average speedup ratio of the overall SpMV computation on the CPU reaches 1.26, demonstrating strong versatility and laying a solid foundation for the efficient application of SpMV in multiple fields.
Authors
- Junsheng Chang (ORCID: https://orcid.org/0009-0006-3061-980X)
- Zhenyu Gao (ORCID: https://orcid.org/0000-0003-4808-2511)
- Donghuan Xie
- Qingjie Lang (ORCID: https://orcid.org/0009-0009-9456-8695)
- Li Shen
- Ruoxi Wang (ORCID: https://orcid.org/0009-0009-5154-0086)
Institutions
- National University of Defense Technology (CN)
Publication Details
- Published
- 2025-03-21
- DOI
- https://doi.org/10.1109/iscait64916.2025.11010635
- Primary Topic
- Power Systems and Technologies
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China