arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1202.3856math.NAcs.NAcs.PF
收藏

基于超图划分的稀疏矩阵向量乘法中缓存局部性利用模型与方法的技术报告

Technical Report on Hypergraph-Partitioning-Based Models and Methods for Exploiting Cache Locality in Sparse-Matrix Vector Multiplication

Bilkent University(比尔肯特大学)

Kadir Akbudak, Enver Kayaaslan, Cevdet Aykanat

AI总结:

针对稀疏矩阵向量乘法中缓存局部性利用困难的问题,提出基于超图划分的1D/2D矩阵重排序方法和矩阵分裂方法,通过最大化时间局部性提升性能。

摘要:

稀疏矩阵向量乘法(SpMxV)是迭代线性求解器中广泛使用的核操作。在这些求解器中,相同的稀疏矩阵反复与稠密向量相乘。不规则稀疏模式的矩阵使得在SpMxV计算中难以有效利用缓存局部性。本文研究了单SpMxV和多SpMxV框架以利用SpMxV计算中的缓存局部性。对于单SpMxV框架,我们利用列网和增强的行列网超图模型,提出了两种基于1D和2D稀疏矩阵划分的缓存大小感知的自顶向下行/列重排序方法。多SpMxV框架依赖于将给定矩阵拆分为多个非零不相交矩阵的和,使得SpMxV操作作为一系列输入和输出依赖的SpMxV操作执行。为了该框架中所需的有效矩阵拆分,我们利用行列网超图模型,提出了一种基于2D稀疏矩阵划分的缓存大小感知的自顶向下方法。对于该框架,我们还提出了两种对单个SpMxV操作进行有效排序的方法。所有三种方法的主要目标是最大化时间局部性的利用。我们通过缓存未命中模拟和使用OSKI的实际运行,在广泛的稀疏矩阵上评估了模型和方法的有效性。实验结果表明,所提出的方法和模型优于现有方案。

英文摘要:

The 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. For this framework, we also propose two methods for effective ordering of individual SpMxV operations. 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 using both cache-miss simulations and actual runs by using OSKI. Experimental results show that proposed methods and models outperform state-of-the-art schemes.

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

↑