BaCO:一种快速便携的贝叶斯编译器优化框架
BaCO: A Fast and Portable Bayesian Compiler Optimization Framework
AI总结:
本研究提出通用自动调优框架BaCO,采用面向领域的贝叶斯优化算法处理多类型参数与约束,在CPU、GPU、FPGA三类编译器上均以极小搜索预算实现了优于现有最优自动调优器的性能与收敛速度。
摘要:
我们提出贝叶斯编译器优化框架(Bayesian Compiler Optimization framework,BaCO),这是一款面向现代编译器的通用自动调优器,支持CPU、GPU和FPGA目标。BaCO具备应对现代自动调优任务需求所需的灵活性,尤其可处理排列型、有序型和连续型参数类型,同时适配已知与未知的参数约束。为实现对这些参数类型的推理并高效生成高质量代码,BaCO采用了面向自动调优领域定制的贝叶斯优化算法。我们分别在三款现代编译器系统上验证了BaCO的有效性:面向CPU的TACO、面向GPU的RISE & ELEVATE,以及面向FPGA的HPVM2FPGA。在这些领域中,BaCO的表现优于当前最先进的自动调优器:在极小的搜索预算下,其生成的代码运行速度平均提升1.36倍至1.56倍;此外,BaCO达到专家级性能的速度要快2.9倍至3.9倍。
英文摘要:
We introduce the Bayesian Compiler Optimization framework (BaCO), a general purpose autotuner for modern compilers targeting CPUs, GPUs, and FPGAs. BaCO provides the flexibility needed to handle the requirements of modern autotuning tasks. Particularly, it deals with permutation, ordered, and continuous parameter types along with both known and unknown parameter constraints. To reason about these parameter types and efficiently deliver high-quality code, BaCO uses Bayesian optimiza tion algorithms specialized towards the autotuning domain. We demonstrate BaCO's effectiveness on three modern compiler systems: TACO, RISE & ELEVATE, and HPVM2FPGA for CPUs, GPUs, and FPGAs respectively. For these domains, BaCO outperforms current state-of-the-art autotuners by delivering on average 1.36x-1.56x faster code with a tiny search budget, and BaCO is able to reach expert-level performance 2.9x-3.9x faster.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。