arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1303.1651cs.PFcs.MS
收藏

稀疏矩阵-矩阵乘法的模型引导性能分析

Model-guided Performance Analysis of the Sparse Matrix-Matrix Multiplication

Tobias Scharpff, Klaus Iglberger, Georg Hager, Ulrich Ruede

摘要:

稀疏矩阵的数值核实现高效率是至关重要的,因为它们是许多模拟代码的一部分,往往会使用大部分可用的计算时间和资源。此外,特别是在大型仿真框架中,数学表达式的可读性和易用性是软件持续维护、修改和扩展的重要组成部分。在这种情况下,稀疏矩阵矩阵乘法是特别感兴趣的。本文深入分析了Blaze智能表达式模板(SET)框架中稀疏矩阵-矩阵乘法内核的单核性能。我们开发简单的模型来估计可实现的最大性能,并使用它们来评估我们的实现的效率。此外,我们将这些内核与几个常用的基于SET的C++库进行了比较,这些库与Blaze一样,旨在将高性能的要求与优雅的用户界面相结合。对于这里考虑的不同稀疏矩阵结构,我们证明了我们的实现在当前英特尔多核处理器上的大多数问题大小上都比其他SET库具有竞争力或更快。

英文摘要:

Achieving high efficiency with numerical kernels for sparse matrices is of utmost importance, since they are part of many simulation codes and tend to use most of the available compute time and resources. In addition, especially in large scale simulation frameworks the readability and ease of use of mathematical expressions are essential components for the continuous maintenance, modification, and extension of software. In this context, the sparse matrix-matrix multiplication is of special interest. In this paper we thoroughly analyze the single-core performance of sparse matrix-matrix multiplication kernels in the Blaze Smart Expression Template (SET) framework. We develop simple models for estimating the achievable maximum performance, and use them to assess the efficiency of our implementations. Additionally, we compare these kernels with several commonly used SET-based C++ libraries, which, just as Blaze, aim at combining the requirements of high performance with an elegant user interface. For the different sparse matrix structures considered here, we show that our implementations are competitive or faster than those of the other SET libraries for most problem sizes on a current Intel multicore processor.

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

↑