arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2604.13433cs.DCcs.NAmath.NA
收藏

PackSELL:一种适用于高精度高性能稀疏矩阵乘向量的稀疏矩阵格式

PackSELL: A Sparse Matrix Format for Precision-Agnostic High-Performance SpMV

Kyoto University(京都大学)

Kengo Suzuki, Takeshi Iwashita

AI总结:

本文提出PackSELL稀疏矩阵格式,通过delta编码和新型打包方案提升GPU上稀疏矩阵向量乘法性能,实验显示其在FP16下性能优于cuSPARSE SELL,且在混合精度下实现更高精度与速度。

摘要:

我们提出了一种新的稀疏矩阵格式PackSELL,旨在支持多样化的数据表示并高效实现GPU上的稀疏矩阵-向量乘法(SpMV)。基于切片ELLPACK(SELL),PackSELL引入了列索引的delta编码和一种新型打包方案,将每个索引-delta-值三元组存储在单个字中,从而减少内存占用和数据移动。此设计进一步允许对delta和值之间的位分配进行细粒度控制,支持灵活的数据表示,包括非IEEE格式。实验结果表明,当配置为半精度(FP16)时,基于PackSELL的SpMV内核性能优于cuSPARSE SELL内核,最高提升达1.63倍。此外,使用定制化格式配置时,PackSELL在FP32精度下实现性能超越FP16 cuSPARSE。这些优势延伸至稀疏线性求解器;例如,使用PackSELL的混合精度预条件共轭梯度(PCG)求解器相比标准全精度PCG实现了最高2.09倍的加速。

英文摘要:

We propose a new sparse matrix format, PackSELL, designed to support diverse data representations and enable efficient sparse matrix-vector multiplication (SpMV) on GPUs. Building on sliced ELLPACK (SELL), PackSELL incorporates delta encoding of column indices and a novel packing scheme that stores each index-delta-value pair in a single word, thereby reducing memory footprint and data movement. This design further enables fine-grained control over the bit allocation between deltas and values, allowing flexible data representations, including non-IEEE formats. Experimental results show that, when configured for half precision (FP16), the PackSELL-based SpMV kernel outperforms the cuSPARSE SELL-based kernel by up to $1.63\times$. Moreover, with configurations using customized formats, PackSELL achieves FP32-level accuracy while exceeding the performance of FP16 cuSPARSE. These benefits extend to sparse linear solvers; for example, a mixed-precision preconditioned conjugate gradient (PCG) solver using PackSELL achieves up to a $2.09\times$ speedup over the standard full-precision PCG.

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

↑