arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2206.08760cs.PLcs.LO
收藏

一种新的基于隐式计算复杂性的环分裂技术

A Novel Loop Fission Technique Inspired by Implicit Computational Complexity

Clément Aubert, Thomas Rubiano, Neea Rusch, Thomas Seiller

摘要:

本文探讨了隐式计算复杂性(ICC)在命令式程序中并行化循环的一个意想不到的应用。由于轻量级的依赖关系分析,我们的算法允许将一个循环分成多个可以并行运行的循环,从而在执行时间方面获得收益,这与最先进的自动并行化工具(当两者都适用时)相似。我们的基于图的算法是直观的,语言不可知的,被证明是正确的,并适用于所有类型的循环,即使他们的循环迭代空间是未知的静态或在编译时,如果他们不是在规范形式或如果他们包含循环进行依赖。作为贡献,我们提供的计算技术,证明其保留的语义正确性,和实验结果,以量化预期的性能收益。我们的基准测试也表明,该技术可以无缝集成到编译器通行证或其他自动并行套件。我们断言,这种原始的和自动化的循环变换方法是由于ICC提供的“正交”方法而发现的。

英文摘要:

This work explores an unexpected application of Implicit Computational Complexity (ICC) to parallelize loops in imperative programs. Thanks to a lightweight dependency analysis, our algorithm allows splitting a loop into multiple loops that can be run in parallel, resulting in gains in terms of execution time similar to state-of-the-art automatic parallelization tools when both are applicable. Our graph-based algorithm is intuitive, language-agnostic, proven correct, and applicable to all types of loops, even if their loop iteration space is unknown statically or at compile time, if they are not in canonical form or if they contain loop-carried dependency. As contributions we deliver the computational technique, proof of its preservation of semantic correctness, and experimental results to quantify the expected performance gains. Our benchmarks also show that the technique could be seamlessly integrated into compiler passes or other automatic parallelization suites. We assert that this original and automatable loop transformation method was discovered thanks to the "orthogonal" approach offered by ICC.

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

↑