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

一种轻量级稀疏矩阵-向量乘法的优化选择方法

A lightweight optimization selection method for Sparse Matrix-Vector Multiplication

Athena Elafrou, Georgios Goumas, Nectarios Koziris

摘要:

在本文中,我们提出了一个普遍存在的稀疏矩阵向量乘法(SpMV)内核的优化选择方法。我们提出了两个模型,试图确定的主要性能瓶颈的内核的问题的每一个实例,然后选择一个适当的优化来解决它。我们的第一个模型需要在线分析的输入矩阵,以检测其最普遍的性能问题,而我们的第二个模型只使用稀疏矩阵的综合结构特征。我们的方法提供了高性能的稳定性SpMV在不同的平台和稀疏矩阵,由于其应用程序和架构的意识。我们的实验结果表明,a)我们的方法能够区分和适当地优化多核平台中的特殊矩阵,这些矩阵不属于标准类的内存带宽约束矩阵,以及b)与以架构为中心的优化相比,在多核平台中导致29%的显着性能增益,这是由于成功地为大多数矩阵选择了适当的优化。运行时开销相当于几十个SpMV操作,我们的方法是实用的,用于在现实生活中的应用程序的迭代数值求解器。

英文摘要:

In this paper, we propose an optimization selection methodology for the ubiquitous sparse matrix-vector multiplication (SpMV) kernel. We propose two models that attempt to identify the major performance bottleneck of the kernel for every instance of the problem and then select an appropriate optimization to tackle it. Our first model requires online profiling of the input matrix in order to detect its most prevailing performance issue, while our second model only uses comprehensive structural features of the sparse matrix. Our method delivers high performance stability for SpMV across different platforms and sparse matrices, due to its application and architecture awareness. Our experimental results demonstrate that a) our approach is able to distinguish and appropriately optimize special matrices in multicore platforms that fall out of the standard class of memory bandwidth bound matrices, and b) lead to a significant performance gain of 29% in a manycore platform compared to an architecture-centric optimization, as a result of the successful selection of the appropriate optimization for the great majority of the matrices. With a runtime overhead equivalent to a couple dozen SpMV operations, our approach is practical for use in iterative numerical solvers of real-life applications.

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

↑