arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2309.11826cs.PL
收藏

多面体归约的最大简化

Maximal Simplification of Polyhedral Reductions

Louis Narmour, Tomofumi Yuki, Sanjay Rajopadhye

AI总结:

本文解决多面体归约简化中无法利用全部重用的问题,提出分片简化方法,通过构造性证明选取有限分片,实现最小渐近复杂度。

摘要:

归约将输入值的集合与一个结合的且通常可交换的算子相结合,以产生结果的集合。当同一输入值对多个输出有贡献时,就有机会重用部分结果,从而实现归约简化。简化通常会产生渐近复杂度较低的程序。典型的编译器优化至多能带来常数倍的加速,但复杂度的改进,例如从三次复杂度降至二次复杂度,对于足够大的问题能产生无界的加速。众所周知,多面体程序中的归约可以自动简化,但先前的方法无法利用所有可用的重用。本文解决了这个长期悬而未决的问题,从而在简化后的程序中达到最小渐近复杂度。我们提出了对先前简化工作的扩展,以支持任何独立的可交换归约。我们方法的核心是分片简化,即我们可以将任意归约拆分成多个部分,然后独立简化每个部分。然而,使用这种分片变换的难点在于它们通常涉及无限多的选择。我们给出了构造性证明来处理这一问题,并选择有限数量的分片进行简化。

英文摘要:

Reductions combine collections of input values with an associative and often commutative operator to produce collections of results. When the same input value contributes to multiple outputs, there is an opportunity to reuse partial results, enabling reduction simplification. Simplification often produces a program with lower asymptotic complexity. Typical compiler optimizations yield, at best, a constant fold speedup, but a complexity improvement from, say, cubic to quadratic complexity yields unbounded speedup for sufficiently large problems. It is well known that reductions in polyhedral programs may be simplified automatically, but previous methods cannot exploit all available reuse. This paper resolves this long-standing open problem, thereby attaining minimal asymptotic complexity in the simplified program. We propose extensions to prior work on simplification to support any independent commutative reduction. At the heart of our approach is piece-wise simplification, the notion that we can split an arbitrary reduction into pieces and then independently simplify each piece. However, the difficulty of using such piece-wise transformations is that they typically involve an infinite number of choices. We give constructive proofs to deal with this and select a finite number of pieces for simplification.

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

↑