BenchPress:一种深度主动基准生成器
BenchPress: A Deep Active Benchmark Generator
摘要:
我们开发了BenchPress,这是第一个用于编译器的ML基准测试生成器,它在源代码的特征空间表示中是可控的。BenchPress通过在空序列或现有序列的任何部分添加新代码来合成编译函数,并通过联合观察其左右上下文来实现出色的编译速度。BenchPress将基准生成转向所需的目标特征,这些特征是最先进的合成器(甚至是人类)无法达到的。与(a)CLgen -最先进的ML合成器,(b)CLSmith fuzzer,(c)SRCIROR mutator甚至(d)来自GitHub的人类编写的代码相比,它在3个不同的特征空间中针对Rodinia基准测试的特征表现更好。BenchPress是第一个使用主动学习搜索特征空间的生成器,以生成将改进下游任务的基准。我们展示了如何使用BenchPress,Grewe等人。CPU与GPU启发式模型在BenchPress的基准测试中训练时,与其他技术相比,可以获得更高的加速比。BenchPress是一个功能强大的代码生成器:它生成的示例的编译率为86%,而CLgen为2.33%。从一个空的固定输入开始,BenchPress产生的OpenCL基准测试比CLgen多10倍,它们更大,功能更多样。
英文摘要:
We develop BenchPress, the first ML benchmark generator for compilers that is steerable within feature space representations of source code. BenchPress synthesizes compiling functions by adding new code in any part of an empty or existing sequence by jointly observing its left and right context, achieving excellent compilation rate. BenchPress steers benchmark generation towards desired target features that has been impossible for state of the art synthesizers (or indeed humans) to reach. It performs better in targeting the features of Rodinia benchmarks in 3 different feature spaces compared with (a) CLgen - a state of the art ML synthesizer, (b) CLSmith fuzzer, (c) SRCIROR mutator or even (d) human-written code from GitHub. BenchPress is the first generator to search the feature space with active learning in order to generate benchmarks that will improve a downstream task. We show how using BenchPress, Grewe's et al. CPU vs GPU heuristic model can obtain a higher speedup when trained on BenchPress's benchmarks compared to other techniques. BenchPress is a powerful code generator: Its generated samples compile at a rate of 86%, compared to CLgen's 2.33%. Starting from an empty fixed input, BenchPress produces 10x more unique, compiling OpenCL benchmarks than CLgen, which are significantly larger and more feature diverse.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。