arrow
Return

Performance Analysis and Optimization for SpMV on GPU Using Probabilistic Modeling

delete2015-01-01
delete196
PRE
AI
李肯立 cover
李肯立 (Kenli Li) *
W
Wangdong Yang
李克勤 cover
李克勤 (Keqin Li)
DOI:10.1109/TPDS.2014.2308221delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
This paper presents a unique method of performance analysis and optimization for sparse matrix-vector multiplication (SpMV) on GPU. This method has wide adaptability for different types of sparse matrices and is different from existing methods which only adapt to some particular sparse matrices. In addition, our method does not need additional benchmarks to get optimized parameters, which are calculated directly through the probability mass function (PMF). We make the following contributions. (1) We present a PMF to analyze precisely the distribution pattern of non-zero elements in a sparse matrix. The PMF can provide theoretical basis for the compression of a sparse matrix. (2) Compression efficiency of COO, CSR, ELL, and HYB can be analyzed precisely through the PMF, and combined with the hardware parameters of GPU, the performance of SpMV based on COO, CSR, ELL, and HYB can be estimated. Furthermore, the most appropriate format for SpMV can be selected according to estimated value of the performance. Experiments prove that the theoretical estimated values and the tested values have high consistency. (3) For HYB, the optimal segmentation threshold can be found through the PMF to achieve the optimal performance for SpMV. Our performance modeling and analysis are very accurate. The order of magnitude of the estimated speedup and that of the tested speedup for each of the ten tested sparse matrices based on the three formats COO, CSR, and ELL are the same. The percentage of relative difference between an estimated value and a tested value is less than 20 percent for over 80 percent cases. The performance improvement of our algorithm is also effective. The average performance improvement of the optimal solution for HYB is over 15 percent compared with that of the automatic solution provided by CUSPARSE lib.
Keywords:
GPU
performance modeling
probability mass function
sparse matrix-vector multiplication
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

IEEE Transactions on Parallel and Distributed Systems cover
IEEE Transactions on Parallel and Distributed Systems
IF:
6
Papers:
5.2K
Citations:
1.1W

Organization

H
hunan university
Scholars:
4.5W
Papers: 3.3W
Citations: 70
Cited Papers

Cited Papers

Self-adapting linear algebra algorithms and software
err2005-02-01
err106
errOAAI
errDemmel, J; Dongarra, J; Eijkhout, V; Fuentes, E; Petitet, A; Vuduc, R; Whaley, RC; Yelick, K
errShare
errSave
An Extended Compression Format for the Optimization of Sparse Matrix-Vector Multiplication
err2013-10-01
err28
PREAI
errKarakasis, Vasileios; Gkountouvas, Theodoros; Kourtis, Kornilios; Goumas, Georgios; Koziris, Nectarios
errShare
errSave
Sparse matrix solvers on the GPU:: Conjugate gradients and multigrid
err2003-07-01
err574
PREAI
errBolz, J; Farmer, I; Grinspun, E; Schröder, P
errShare
errSave
researcher View more