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

基于模式的稠密线性代数可扩展优化

Towards scalable pattern-based optimization for dense linear algebra

Dániel Berényi, András Leitereg, Gábor Lehel

摘要:

线性代数表达式是许多计算密集型问题的本质,包括科学模拟和机器学习应用。然而,将这些表达式的高级公式转换为有效的机器级表示绝非易事:开发人员应该得到自动优化工具的帮助,以便他们可以将注意力集中在高级问题上,而不是低级细节。这些优化的易处理性在很大程度上取决于原始构造的选择,根据这些原始构造来表达计算。在这项工作中,我们建议使用高阶函数的选择来描述多维数组上的操作,灵感来自函数式编程,我们提出了这些重写规则,以便它们可以自动优化现代分层和异构体系结构。利用这种形式主义,我们系统地构造和分析不同的细分和排列的稠密矩阵乘法问题。

英文摘要:

Linear algebraic expressions are the essence of many computationally intensive problems, including scientific simulations and machine learning applications. However, translating high-level formulations of these expressions to efficient machine-level representations is far from trivial: developers should be assisted by automatic optimization tools so that they can focus their attention on high-level problems, rather than low-level details. The tractability of these optimizations is highly dependent on the choice of the primitive constructs in terms of which the computations are to be expressed. In this work we propose to describe operations on multi-dimensional arrays using a selection of higher-order functions, inspired by functional programming, and we present rewrite rules for these such that they can be automatically optimized for modern hierarchical and heterogeneous architectures. Using this formalism we systematically construct and analyse different subdivisions and permutations of the dense matrix multiplication problem.

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

↑