返回
Multiple-precision sparse matrix-vector multiplication on GPUs
Gpu上的多精度稀疏矩阵向量乘法
DOI:10.1016/j.jocs.2022.101609.png)
摘要
En 中文
Sparse matrix-vector multiplication (SpMV) appears in many application domains, and performance is the key consideration when implementing SpMV kernels. At the same time, accuracy is also important because rounding errors can drastically change the computed result. Multiple-precision arithmetic is a common approach to improve the accuracy of results. In this paper, we implement and evaluate multiple-precision SpMV kernels in the CSR, JAD, ELLPACK, and DIA matrix storage formats for graphics processing units. In the proposed implementation, the matrix is represented in double precision, while the input and output vectors are in multiple precision and internal computations are also performed in multiple precision. Our underlying floating-point arithmetic algorithms are based on the residue number system, which is attractive because of its carry-free nature and provides an arbitrary level of precision determined by the set of moduli that comprise the base of the system. In particular, we apply sets from 8 to 64 moduli, reaching precision values from 106 to 848 bits, and demonstrate how higher precision reduces the rounding errors in the SpMV kernel. We also conduct a thorough analysis of the CSR kernel in terms of roofline performance, occupancy and memory bandwidth, and evaluate the performance and memory consumption for all the proposed kernels. Numerical experiments on matrices from real-world applications show that ELLPACK offers the highest performance in many examples, while JAD is a good trade-off between performance and space requirements. Furthermore, our proposed kernels in general substantially improve the efficiency of sparse matrix-vector multiplication compared to implementations built on top of existing multiple-precision CUDA libraries. Finally, we integrate the multiple-precision SpMV into a preconditioned conjugate gradient linear solver and identify test cases where our implementation exhibits superior convergence and numerical robustness.
Keyword:
Sparse matrices
Sparse matrix-vector multiplication
Multiple-precision computation
High-performance computing
CUDA
期刊
IF:
18.3
论文数:
3.1K
被引数:
7.1K
机构
引用论文
Inspecting abundantly expressed genes in male strobili in sugi (Cryptomeria japonica D. Don) via a highly accurate cDNA assembly通过高度精确的cDNA组装,检查柳杉(Cryptomeria japonica D. Don)雄球花中丰富表达的基因。
Using Floating-Point Intervals for Non-Modular Computations in Residue Number System
IEEE ACCESS
IF3.6

