CompilerGym:用于AI研究的稳健、高性能的混合器优化环境
CompilerGym: Robust, Performant Compiler Optimization Environments for AI Research
摘要:
将人工智能(AI)技术应用于编译器优化的兴趣正在迅速增加,但编译器研究具有很高的进入门槛。与其他领域不同,编译器和人工智能研究人员无法访问能够实现快速迭代和想法开发的数据集和框架,并且开始需要大量的工程投资。我们需要的是一个简单的,可重复使用的实验基础设施,为现实世界的编译器优化任务,可以作为一个共同的基准比较技术,并作为一个平台,以加速在该领域的进展。我们介绍了一组环境,现实世界的编译器优化任务,和一个工具包,用于暴露新的优化任务的编译器研究人员。QuiderGym使任何人都可以通过一个易于使用的包来实验生产编译器优化问题,无论他们对编译器的经验如何。我们以流行的OpenAI Gym接口为基础,使研究人员能够使用Python和熟悉的API与编译器进行交互。我们描述了ChiperGym的架构和实现,包括三个编译器环境的优化空间和计算效率的特点,并提供了广泛的经验评估。与以前的作品相比,QuererGym提供了更大的数据集和优化空间,计算效率提高了27倍,具有容错能力,并且能够检测底层编译器中的可重复性错误。为了让任何人都能轻松地尝试编译器-无论他们的背景如何-我们的目标是加速AI和编译器研究领域的进展。
英文摘要:
Interest in applying Artificial Intelligence (AI) techniques to compiler optimizations is increasing rapidly, but compiler research has a high entry barrier. Unlike in other domains, compiler and AI researchers do not have access to the datasets and frameworks that enable fast iteration and development of ideas, and getting started requires a significant engineering investment. What is needed is an easy, reusable experimental infrastructure for real world compiler optimization tasks that can serve as a common benchmark for comparing techniques, and as a platform to accelerate progress in the field. We introduce CompilerGym, a set of environments for real world compiler optimization tasks, and a toolkit for exposing new optimization tasks to compiler researchers. CompilerGym enables anyone to experiment on production compiler optimization problems through an easy-to-use package, regardless of their experience with compilers. We build upon the popular OpenAI Gym interface enabling researchers to interact with compilers using Python and a familiar API. We describe the CompilerGym architecture and implementation, characterize the optimization spaces and computational efficiencies of three included compiler environments, and provide extensive empirical evaluations. Compared to prior works, CompilerGym offers larger datasets and optimization spaces, is 27x more computationally efficient, is fault-tolerant, and capable of detecting reproducibility bugs in the underlying compilers. In making it easy for anyone to experiment with compilers - irrespective of their background - we aim to accelerate progress in the AI and compiler research domains.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。