在新兴多核架构上优化稀疏矩阵向量乘法
Optimizing Sparse Matrix-Vector Multiplication on Emerging Many-Core Architectures
摘要:
稀疏矩阵向量乘法(Sparse matrix vector multiplication,SpMV)是科学和高性能应用中最常见的运算之一,也是造成应用性能瓶颈的主要原因。虽然稀疏矩阵表示对最终的应用程序性能有很大的影响,但选择正确的表示通常依赖于专家知识和反复试验。本文首次全面研究了稀疏矩阵表示对两种新兴众核架构的影响:英特尔的Knights Landing(KNL)XeonPhi和基于ARM的FT-2000 Plus(FTP)。我们的大规模实验涉及在956个稀疏数据集和5个主流SpMV表示上执行的9,500多个不同的分析运行。我们表明,最好的稀疏矩阵表示取决于底层架构和程序输入。为了帮助开发人员选择最佳的矩阵表示,我们采用机器学习来开发预测模型。我们的模型首先使用一组训练样本进行离线训练。学习的模型可用于预测给定架构的任何不可见输入的最佳矩阵表示。我们表明,我们的模型提供了平均95%和91%的KNL和FTP上的最佳性能分别,它实现了这一点,没有运行时分析开销。
英文摘要:
Sparse matrix vector multiplication (SpMV) is one of the most common operations in scientific and high-performance applications, and is often responsible for the application performance bottleneck. While the sparse matrix representation has a significant impact on the resulting application performance, choosing the right representation typically relies on expert knowledge and trial and error. This paper provides the first comprehensive study on the impact of sparse matrix representations on two emerging many-core architectures: the Intel's Knights Landing (KNL) XeonPhi and the ARM-based FT-2000Plus (FTP). Our large-scale experiments involved over 9,500 distinct profiling runs performed on 956 sparse datasets and five mainstream SpMV representations. We show that the best sparse matrix representation depends on the underlying architecture and the program input. To help developers to choose the optimal matrix representation, we employ machine learning to develop a predictive model. Our model is first trained offline using a set of training examples. The learned model can be used to predict the best matrix representation for any unseen input for a given architecture. We show that our model delivers on average 95% and 91% of the best available performance on KNL and FTP respectively, and it achieves this with no runtime profiling overhead.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。