一种快速求排列的方法:融合与维数匹配
An Approach for Finding Permutations Quickly: Fusion and Dimension matching
摘要:
多面体编译器可以执行复杂的循环优化,以提高输入程序中循环的并行性和缓存行为。这些转换在具有大计算能力和深存储层次结构的现代处理器上导致显著的性能增益。论文“Polyhedral Auto-transformation with No Linear Programming”确定了对多面体转换框架的可扩展性产生不利影响的问题;特别是Pluto算法。构造和求解复杂的非线性规划(ILP)问题会显著增加多面体编译器的时间。本文提出了两个正交的想法,共同克服了仿射调度问题的可扩展性问题。它首先将ILP放松为线性规划(LP)问题,从而解决更便宜的算法。为了克服由于这种松弛而出现的次最优性,仿射调度问题被分解为以下三个部分:(1)融合和维度匹配,(2)循环缩放和移位,以及(3)循环偏斜。这个新的自动转换框架pluto-lp-dfp在不牺牲生成代码的性能的情况下,显著提高了Pluto算法所花费的时间。本报告首先提供了证明的理论索赔的文件中周围放松LP制定的冥王星算法。报告的第二部分描述了一种方法,可以找到良好的循环融合(或分布)和循环排列,从而实现平铺性。这份简短的报告是本文的补充材料。
英文摘要:
Polyhedral compilers can perform complex loop optimizations that improve parallelism and cache behaviour of loops in the input program. These transformations result in significant performance gains on modern processors which have large compute power and deep memory hierarchies. The paper, "Polyhedral Auto-transformation with No Integer Linear Programming", identifies issues that adversely affect scalability of polyhedral transformation frameworks; in particular the Pluto algorithm. The construction and solving of a complex Integer Linear Programming (ILP) problem increases the time taken by a polyhedral compiler significantly. The paper presents two orthogonal ideas, which together overcome the scalability issues in the affine scheduling problem. It first relaxes the ILP to a Linear Programming (LP) problem, thereby solving a cheaper algorithm. To overcome the sub-optimalities that arise due to this relaxation, the affine scheduling problem is decomposed into following three components: (1) Fusion and dimension matching, (2) Loop scaling and shifting, and (3) Loop skewing. This new auto-transformation framework, pluto-lp-dfp, significantly improves the time taken by the Pluto algorithm without sacrificing performance of the generated code. This report first provides proofs for the theoretical claims made in the paper surrounding relaxed LP formulation of the Pluto algorithm. The second part of the report describes an approach to find good loop fusion (or distribution) and loop permutations that enable tileability. This short report serves as the supplementary material for the paper.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。