使用贝叶斯优化(扩展版)使用LLVM Clang/Polly循环优化规则自动调整PolyBench基准测试
Autotuning PolyBench Benchmarks with LLVM Clang/Polly Loop Optimization Pragmas Using Bayesian Optimization (extended version)
摘要:
在本文中,我们开发了一个ytopt自动调整框架,利用贝叶斯优化来探索参数空间搜索,并比较贝叶斯优化中四种不同的监督学习方法,并评估其有效性。我们选择了六个最复杂的PolyBench基准测试,并将新开发的LLVM Clang/Polly循环优化杂注应用于基准测试以优化它们。然后,我们使用自动调优框架来优化杂注参数,以提高其性能。实验结果表明,我们的自动调优方法优于其他编译方法,在200个代码评估中为基准测试提供了最短的执行时间,其中包括两个大型数据集,3 mm,heat-3d,lu和协方差,用于有效搜索多达170,368种不同配置的参数空间。我们发现,Floor-Warshall基准测试并没有从自动调优中受益,因为Polly使用了自动调优来优化基准测试,使其运行得更慢。为了解决这个问题,我们提供了一些编译器选项的解决方案,以提高性能。然后,我们提出了一个简单的mctree自动调优框架,以进一步提高性能的Floor-Warshall基准循环自动调优没有用户的知识。我们还扩展了ytopt自动调优框架来调优深度学习应用程序。
英文摘要:
In this paper, we develop a ytopt autotuning framework that leverages Bayesian optimization to explore the parameter space search and compare four different supervised learning methods within Bayesian optimization and evaluate their effectiveness. We select six of the most complex PolyBench benchmarks and apply the newly developed LLVM Clang/Polly loop optimization pragmas to the benchmarks to optimize them. We then use the autotuning framework to optimize the pragma parameters to improve their performance. The experimental results show that our autotuning approach outperforms the other compiling methods to provide the smallest execution time for the benchmarks syr2k, 3mm, heat-3d, lu, and covariance with two large datasets in 200 code evaluations for effectively searching the parameter spaces with up to 170,368 different configurations. We find that the Floyd-Warshall benchmark did not benefit from autotuning because Polly uses heuristics to optimize the benchmark to make it run much slower. To cope with this issue, we provide some compiler option solutions to improve the performance. Then we present loop autotuning without a user's knowledge using a simple mctree autotuning framework to further improve the performance of the Floyd-Warshall benchmark. We also extend the ytopt autotuning framework to tune a deep learning application.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。