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

AlphaSparse:直接从稀疏矩阵生成高性能SpMV码

AlphaSparse: Generating High Performance SpMV Codes Directly from Sparse Matrices

Zhen Du, Jiajia Li, Yinshan Wang, Xueqi Li, Guangming Tan, Ninghui Sun

摘要:

稀疏矩阵向量乘法(Sparse Matrix-Vector Multiplication,SpMV)是许多应用场景中必不可少的计算核心。已经提出了数十种稀疏矩阵格式和实现来压缩内存存储并加速SpMV性能。我们开发了AlphaSparse,这是所有现有作品的超集,超出了人类设计的格式和实现的范围。AlphaSparse完全根据输入稀疏模式和硬件架构的知识自动执行\emph{creates novel machine-designed formats and SpMV kernel implementations}。基于我们提出的表达SpMV格式和内核设计路径的操作符图,AlphaSparse由三个主要组件组成:设计器,格式\&内核生成器和搜索引擎。它以任意稀疏矩阵作为输入,输出高性能的机器设计格式和SpMV实现。通过广泛评估SuiteSparse Matrix Collection中的843个矩阵,AlphaSparse实现了显著的性能提升,与五种最先进的人工格式相比,平均提高了3.2 $\times$,与传统自动调整理念的最新实现相比,平均提高了1.5 $\times$(高达2.7 $\times$)。

英文摘要:

Sparse Matrix-Vector multiplication (SpMV) is an essential computational kernel in many application scenarios. Tens of sparse matrix formats and implementations have been proposed to compress the memory storage and speed up SpMV performance. We develop AlphaSparse, a superset of all existing works that goes beyond the scope of human-designed format(s) and implementation(s). AlphaSparse automatically \emph{creates novel machine-designed formats and SpMV kernel implementations} entirely from the knowledge of input sparsity patterns and hardware architectures. Based on our proposed Operator Graph that expresses the path of SpMV format and kernel design, AlphaSparse consists of three main components: Designer, Format \& Kernel Generator, and Search Engine. It takes an arbitrary sparse matrix as input while outputs the performant machine-designed format and SpMV implementation. By extensively evaluating 843 matrices from SuiteSparse Matrix Collection, AlphaSparse achieves significant performance improvement by 3.2$\times$ on average compared to five state-of-the-art artificial formats and 1.5$\times$ on average (up to 2.7$\times$) over the up-to-date implementation of traditional auto-tuning philosophy.

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

↑