循环变换的自动调整搜索空间
Autotuning Search Space for Loop Transformations
摘要:
优化编译器的挑战之一是预测应用优化是否会提高其执行速度。程序员可以在源代码中使用诸如杂注之类的优化指令来覆盖编译器的盈利启发式。自动调整形式的机器学习可以帮助用户为每个平台找到最佳优化。在本文中,我们提出了一个循环变换搜索空间,采取了树的形式,在以前的方法,通常使用向量空间来表示循环优化配置。我们实现了一个简单的自动调谐器,探索搜索空间,并将其应用于一组选定的PolyBench内核。虽然自动调谐器能够表示每个可能的循环变换序列及其关系,但结果激励使用更好的搜索策略,如蒙特卡罗树搜索,以找到复杂的循环变换,如多级平铺。
英文摘要:
One of the challenges for optimizing compilers is to predict whether applying an optimization will improve its execution speed. Programmers may override the compiler's profitability heuristic using optimization directives such as pragmas in the source code. Machine learning in the form of autotuning can assist users in finding the best optimizations for each platform. In this paper we propose a loop transformation search space that takes the form of a tree, in contrast to previous approaches that usually use vector spaces to represent loop optimization configurations. We implemented a simple autotuner exploring the search space and applied it to a selected set of PolyBench kernels. While the autotuner is capable of representing every possible sequence of loop transformations and their relations, the results motivate the use of better search strategies such as Monte Carlo tree search to find sophisticated loop transformations such as multilevel tiling.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。