Machine Learning-Based Kernel Selector for SpMV Optimization in Graph Analysis
Open Access
- 8 June 2024
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Parallel Computing
- Vol. 11 (2) , 1-25
Abstract
Sparse Matrix and Vector multiplication (SpMV) is one of the core algorithms in various large-scale scientific computing and real-world applications. With the rapid development of AI and big data, the input vector in SpMV becomes sparse in many application fields. Especially in some graph analysis calculations, the sparsity of the input vector will change with the running of the program, and the non-zero element distribution of the adjacency matrix of some graph data has the power law property, leading to serious load imbalance, which requires additional optimization means. Therefore, the optimal SpMV kernel may be different, and a single SpMV kernel can no longer meet the acceleration requirements. In this article, we propose a decision tree-based adaptive SpMV framework, named DTSpMV, that can automatically select appropriate SpMV kernels according to different input data in iterations of graph computation. Based on the analysis of computing patterns, bit-array compression algorithms, and serial and parallel algorithms, we encapsulate nine SpMV kernels within the framework. We explore machine learning-based kernel selectors in terms of both accuracy and runtime overhead. Experimental results on NVIDIA Tesla T4 GPU show that our adaptive framework achieves the arithmetic average performance improvement of 152× compared to the SpMV kernel in cuSPARSE.Keywords
Funding Information
- 24th IEEE International Conference on High Performance Computing and Communications (HPCC 2022)
- Programs of NSFC (62321003, 62172157, 62202149)
- Programs of Hunan Province (2024JJ2026, 2023GK2002)
- Programs of Shenzhen and Guangdong Province (2023A1515012915, JCYJ20210324135409026)
This publication has 45 references indexed in Scilit:
- DTSpMV: An Adaptive SpMV Framework for Graph Analysis on GPUs2022
- CoSPARSE: A Software and Hardware Reconfigurable SpMV Framework for Graph Analytics2021
- SpV8: Pursuing Optimal Vectorization and Regular Computation Pattern in SpMV2021
- Performance analysis and optimization for SpMV based on aligned storage formats on an ARM processorJournal of Parallel and Distributed Computing, 2021
- Adaptive diagonal sparse matrix-vector multiplication on GPUJournal of Parallel and Distributed Computing, 2021
- Sequences of Sparse Matrix-Vector Multiplication on Fugaku’s A64FX processors2021
- Exploring Better Speculation and Data Locality in Sparse Matrix-Vector Multiplication on Intel Xeon2020
- A parallel computing method using blocked format with optimal partitioning for SpMV on GPUJournal of Computer and System Sciences, 2018
- Fine-grained accelerators for sparse machine learning workloads2017
- BigDataBench: A big data benchmark suite from internet services2014