分析和增强用于稀疏矩阵-向量乘法的OSKI
Analyzing and enhancing OSKI for sparse matrix-vector multiplication
AI总结:
针对稀疏矩阵-向量乘法(SpMxV)中的缓存局部性问题,提出基于超图模型的缓存大小感知的行/列重排序方法和矩阵分裂方法,以最大化时间局部性利用,实验表明优于现有方案。
摘要:
稀疏矩阵-向量乘法(SpMxV)是迭代线性求解器中广泛使用的核操作。在这些求解器中,相同的稀疏矩阵反复与稠密向量相乘。不规则稀疏模式的矩阵使得在SpMxV计算中难以有效利用缓存局部性。在这项工作中,我们研究了用于在SpMxV计算中利用缓存局部性的单SpMxV和多SpMxV框架。对于单SpMxV框架,我们通过利用列网和增强稀疏矩阵的行-列网超图模型,基于一维和二维稀疏矩阵划分,提出了两种缓存大小感知的自顶向下行/列重排序方法。多SpMxV框架依赖于将给定矩阵拆分为多个非零不相交矩阵的和,以便SpMxV操作作为一系列依赖于输入和输出的SpMxV操作执行。对于该框架中所需的有效矩阵拆分,我们通过利用行-列网超图模型,基于二维稀疏矩阵划分,提出了一种缓存大小感知的自顶向下方法。所有三种方法的主要目标是最大化时间局部性的利用。我们通过使用OSKI进行实际运行,在广泛的稀疏矩阵上评估了模型和方法的有效性。实验结果表明,所提出的方法和模型优于现有方案。
英文摘要:
Sparse matrix-vector multiplication (SpMxV) is a kernel operation widely used in iterative linear solvers. The same sparse matrix is multiplied by a dense vector repeatedly in these solvers. Matrices with irregular sparsity patterns make it difficult to utilize cache locality effectively in SpMxV computations. In this work, we investigate single- and multiple-SpMxV frameworks for exploiting cache locality in SpMxV computations. For the single-SpMxV framework, we propose two cache-size-aware top-down row/column-reordering methods based on 1D and 2D sparse matrix partitioning by utilizing the column-net and enhancing the row-column-net hypergraph models of sparse matrices. The multiple-SpMxV framework depends on splitting a given matrix into a sum of multiple nonzero-disjoint matrices so that the SpMxV operation is performed as a sequence of multiple input- and output-dependent SpMxV operations. For an effective matrix splitting required in this framework, we propose a cache-size-aware top-down approach based on 2D sparse matrix partitioning by utilizing the row-column-net hypergraph model. The primary objective in all of the three methods is to maximize the exploitation of temporal locality. We evaluate the validity of our models and methods on a wide range of sparse matrices by performing actual runs through using OSKI. Experimental results show that proposed methods and models outperform state-of-the-art schemes.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。