存在约简的Polly多面体排序
Polly's Polyhedral Scheduling in the Presence of Reductions
摘要:
多面体模型提供了强大的数学抽象,以实现关于给定优化目标的循环嵌套的有效优化,例如,利用并行性。未利用的约简属性是多面体优化器假设并行禁止依赖的常见原因。据我们所知,在任何生产编译器中都没有多面体循环优化器提供对约简的支持。在本文中,我们表明,利用并行减少可以导致显着的性能提高。我们给出了一个精确的,依赖性为基础的,减少的定义和讨论的方法来扩展多面体优化利用减少计算的结合性和交换性。我们在Polly多面体优化器中实现了一种支持约简的调度方法,并在标准的Polybench 3.2基准套件上对其进行了评估。我们能够检测和建模所有52个算术减少,并实现加速高达2.21 $\times$的四核机器上利用多维减少的BiCG基准。
英文摘要:
The polyhedral model provides a powerful mathematical abstraction to enable effective optimization of loop nests with respect to a given optimization goal, e.g., exploiting parallelism. Unexploited reduction properties are a frequent reason for polyhedral optimizers to assume parallelism prohibiting dependences. To our knowledge, no polyhedral loop optimizer available in any production compiler provides support for reductions. In this paper, we show that leveraging the parallelism of reductions can lead to a significant performance increase. We give a precise, dependence based, definition of reductions and discuss ways to extend polyhedral optimization to exploit the associativity and commutativity of reduction computations. We have implemented a reduction-enabled scheduling approach in the Polly polyhedral optimizer and evaluate it on the standard Polybench 3.2 benchmark suite. We were able to detect and model all 52 arithmetic reductions and achieve speedups up to 2.21$\times$ on a quad core machine by exploiting the multidimensional reduction in the BiCG benchmark.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。