arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.00019cs.DCcs.PF
收藏

稀疏矩阵-向量乘法运行时数据变换的自动调优方法

An Auto-tuning Method for Run-time Data Transformation for Sparse Matrix-Vector Multiplication

Takahiro Katagiri, Masahiko Sato

AI总结:

本文针对稀疏矩阵-向量乘法提出基于$D_{mat}^i$-$R_{ell}^i$图的自动调优方法,用于指导CRS到ELL等格式的运行时数据变换,在地球模拟器2上实现最高151倍加速且变换开销极低。

摘要:

本文研究了稀疏矩阵-向量乘法(SpMV)中从压缩行存储(CRS)到坐标存储(COO)以及ELL(ELLPACK/ITPACK)格式的运行时稀疏矩阵数据变换,并结合OpenMP并行化。我们提出了一种自动调优(AT)方法,利用$D_{mat}^i$-$R_{ell}^i$图,该图描绘了每行非零元素数量的导数/平均值($D_{mat}^i$)以及SpMV加速比与从CRS到ELL的变换时间之比($R_{ell}^i$)。实验结果表明,ELL格式在地球模拟器2上非常有效。采用ELL-Row内部并行化格式获得了151倍的加速因子。变换开销也非常小,仅为CRS格式SpMV时间的0.01到1.0倍。此外,$D_{mat}^i$-$R_{ell}^i$图可以根据$D_{mat}^i$值对变换的有效性进行建模。

英文摘要:

In this paper, we research the run-time sparse matrix data transformation from Compressed Row Storage (CRS) to Coordinate (COO) storage and an ELL (ELLPACK/ITPACK) format with OpenMP parallelization for sparse matrix-vector multiplication (SpMV). We propose an auto-tuning (AT) method by using the $D_{mat}^i$ - $R_{ell}^i$ graph, which plots the derivation/average for the number of non-zero elements per row ($D_{mat}^i$) and the ratio, SpMV speedups/transformation time from the CRS to ELL ($R_{ell}^i$ ). The experimental results show the ELL format is very effective in the Earth Simulator 2. The speedup factor of 151 with the ELL-Row inner-parallelized format is obtained. The transformation overhead is also very small, such as 0.01 to 1.0 SpMV time with the CRS format. In addition, the $D_{mat}^i$ - $R_{ell}^i$ graph can be modeled for the effectiveness of transformation according to the $D_{mat}^i$ value.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑