arrow
Return

Predicting optimal sparse general matrix-matrix multiplication algorithm on GPUs

delete2024-02-05
delete0
PRE
AI
B
Bingxin Wei
王
王一拙 (Yizhuo Wang) *
F
Fangli Chang
J
Jianhua Gao
W
Weixing Ji
DOI:10.1177/10943420241231928delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Sparse General Matrix-Matrix Multiplication (SpGEMM) has played an important role in a number of applications. So far, many efficient algorithms have been proposed to improve the performance of SpGEMM on GPUs. However, the performance of each algorithm for matrices of different structures varies a lot. There is no algorithm that can achieve the optimal performance of SpGEMM computation on all matrices. In this article, we design a machine learning based approach for predicting the optimal SpGEMM algorithm on input matrices. By extracting features from input matrices, we utilize LightGBM and XGBoost to train different lightweight models. The models are capable of predicting the best performing algorithm with low inference overhead and high accuracy for the given input matrices. We also investigate the impact of tree depth on model accuracy and inference overhead. Our evaluation shows that an increase in tree depth leads to a corresponding increase in prediction accuracy, reaching a maximum of approximately 85%, while resulting in increased inference overhead of approximately 10 A mu s. Compared with the state-of-the-art algorithms on three GPU platforms, our method achieves better overall performance.
Keywords:
Sparse general matrix-matrix multiplication
graphics processing unit
machine learning
gradient boosting decision tree

Journal

International Journal of High Performance Computing Applications cover
International Journal of High Performance Computing Applications
IF:
2.5
Papers:
1.1K
Citations:
1.3K

Organization

B
beijing institute of technology
Scholars:
5.5W
Papers: 4.0W
Citations: 63
Cited Papers

Cited Papers

Enacting musical emotions. sense-making, dynamic systems, and the embodied mind
err2016-07-22
err0
PREAI
errAndrea Schiavio; Dylan van der Schyff; Julian Cespedes-Guevara; Mark Reybrouck
errShare
errSave
Cell therapy in models for temporal lobe epilepsy
err2007-10-01
err0
errOAAI
errR. Raedt; A. Van Dycke; K. Vonck; P. Boon
errShare
errSave
Identification of the inflammatory cells in the central nervous system of patients with adrenoleukodystrophy
err2004-10-07
err0
PREAI
errDiane E. Griffin; Hugo W. Moser; Querubin Mendoza; Thomas R. Moench; Susan O'Toole; Ann B. Moser
errShare
errSave
EXPOSING FINE-GRAINED PARALLELISM IN ALGEBRAIC MULTIGRID METHODS
err2012-01-01
err141
PREAI
errBell, Nathan; Dalton, Steven; Olson, Luke N.
errShare
errSave
Elemental content of tissues of guinea pigs fed Swiss chard grown on municipal sewage sludge-amended soil
err2002-05-01
err0
PREAI
errRufus L. Chaney; Gilbert S. Stoewsand; A. Keith Furr; Carl A. Bache; Donald J. Lisk
errShare
errSave
researcher View more