pSpMv: precision-based sparse matrix partition and SpMV optimization
Abstract The new generation of computing devices tends to support multiple floating-point formats and different computing precision. Besides single and double precision, half precision is embraced and widely supported by new computing devices. Low-precision representations have compact memory size and lightweight computing strength, and they also bring opportunities to the optimization of BLAS routines. This paper proposes a new sparse matrix partition approach based on IEEE 754 standard floating-point format. An input sparse matrix in double precision is partitioned and transformed into several sub-matrices in different precision without loss of accuracy. Most non-zero elements can be stored in half or single precision, if the most significant bits of exponent and the least significant bits of mantissa are zeros in double-precision representation. Based on this mixed-precision representation of sparse matrix, we also present a new SpMV algorithm pSpMV for GPU devices. pSpMV not only reduces the memory access overhead, but also reduces the computing strength of floating-point numbers. Experimental results on two GPU devices show that pSpMV achieves a geometric mean speedup of 1.39x on Tesla V100 and 1.45x on Tesla P100 over double-precision SpMV for 2,554 sparse matrices.
Authors
- Weixing Ji (ORCID: https://orcid.org/0000-0002-3250-0435)
- Jianhua Gao (ORCID: https://orcid.org/0000-0002-3828-0015)
- Jie Liu (ORCID: https://orcid.org/0000-0002-0750-1030)
- Yizhuo Wang (ORCID: https://orcid.org/0000-0002-1288-331X)
Institutions
- Beijing Institute of Technology (CN)
- Beijing Normal University (CN)
Publication Details
- Journal
- CCF Transactions on High Performance Computing
- Published
- 2024-12-01
- DOI
- https://doi.org/10.1007/s42514-024-00195-x
- Citations
- 1
- Primary Topic
- Parallel Computing and Optimization Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.49
Funders
- Nvidia