仿射环变换的性能词汇
A Performance Vocabulary for Affine Loop Transformations
摘要:
现代多面体编译器擅长于积极优化具有静态控制部分的代码,但是找到高性能多面体转换(特别是针对不同硬件目标)的实践状态仍然主要涉及自动调优。在这项工作中,我们提出了一种新的多面体调度技术,其目的是减少需要自动调整,同时允许建立可定制的和具体的转换策略。我们设计的约束和目标,模型的性能,如步幅优化或并行性和重用之间的权衡几个关键方面,同时考虑到重要的架构功能的目标机器。开发的目标集体现了循环转换的性能词汇表。我们的目标是使用这个由性能习惯用法组成的词汇表来构造适合于许多程序类的转换配方。我们使用PolyBench/C基准测试套件评估我们的工作,并在10核Intel Core-i9(Skylake-X)上使用Pluto编译器生成的大型优化空间进行实验验证。我们的结果表明,我们可以在大多数基准测试中实现与Pluto相当或更优的性能,而无需在源代码中实现切片,也无需使用实验性自动调优。
英文摘要:
Modern polyhedral compilers excel at aggressively optimizing codes with static control parts, but the state-of-practice to find high-performance polyhedral transformations especially for different hardware targets still largely involves auto-tuning. In this work we propose a novel polyhedral scheduling technique, with the aim to reduce the need for auto-tuning while allowing to build customizable and specific transformation strategies. We design constraints and objectives that model several crucial aspects of performance such as stride optimization or the trade-off between parallelism and reuse, while taking into account important architectural features of the target machine. The developed set of objectives embody a Performance Vocabulary for loop transformations. The goal is to use this vocabulary, consisting of performance idioms, to construct transformation recipes adapted to a number of program classes. We evaluate our work using the PolyBench/C benchmark suite and experimentally validate it against large optimization spaces generated with the Pluto compiler on a 10-core Intel Core-i9 (Skylake-X). Our results show that we can achieve comparable or superior performance to Pluto on the majority of benchmarks, without implementing tiling in the source code nor using experimental autotuning.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。