DiffTune: Optimizing CPU Simulator Parameters with Learned Differentiable Surrogates
DiffTune: Optimizing CPU Simulator Parameters with Learned Differentiable Surrogates
复制标题
DiffTune:使用学习的可微代理优化 CPU 模拟器参数
DOI:
10.1109/micro50266.2020.00045
复制
发表时间:
2020
期刊:
影响因子:
--
通讯作者:
Carbin, Michael
中科院分区:
文献类型:
--
作者:
Renda, Alex;Chen, Yishen;Mendis, Charith;Carbin, Michael
CPU simulators are useful tools for modeling CPU execution behavior. However, they suffer from inaccuracies due to the cost and complexity of setting their fine-grained parameters, such as the latencies of individual instructions. This complexity arises from the expertise required to design benchmarks and measurement frameworks that can precisely measure the values of parameters at such fine granularity. In some cases, these parameters do not necessarily have a physical realization and are therefore fundamentally approximate, or even unmeasurable. In this paper we present DiffTune, a system for learning the parameters of x86 basic block CPU simulators from coarse-grained end-to-end measurements. Given a simulator, DiffTune learns its parameters by first replacing the original simulator with a differentiable surrogate, another function that approximates the original function; by making the surrogate differentiable, DiffTune is then able to apply gradient-based optimization techniques even when the original function is non-differentiable, such as is the case with CPU simulators. With this differentiable surrogate, DiffTune then applies gradient-based optimization to produce values of the simulator's parameters that minimize the simulator's error on a dataset of ground truth end-to-end performance measurements. Finally, the learned parameters are plugged back into the original simulator. DiffTune is able to automatically learn the entire set of microarchitecture-specific parameters within the Intel x86 simulation model of llvm-mca, a basic block CPU simulator based on LLVM's instruction scheduling model. DiffTune's learned parameters lead llvm-mca to an average error that not only matches but lowers that of its original, expert-provided parameter values.
登录
查看更多内容
DOI:
10.1109/ispass.2014.6844457
发表时间:
2014-03
期刊:
2014 IEEE International Symposium on Performance Analysis of Systems and Software (ISPASS)
影响因子:
--
作者:
Anthony Gutierrez;Joseph Pusdesris;R. Dreslinski;T. Mudge;Chander Sudanthi;C. D. Emmons;Mitchell Hayenga;N. Paver
通讯作者:
Anthony Gutierrez;Joseph Pusdesris;R. Dreslinski;T. Mudge;Chander Sudanthi;C. D. Emmons;Mitchell Hayenga;N. Paver
DOI:
10.1016/j.peva.2020.102106
发表时间:
2020
期刊:
Perform. Evaluation
影响因子:
--
作者:
Angela Pohl;Biagio Cosenza;B. Juurlink
通讯作者:
B. Juurlink
DOI:
10.1145/3385412.3385995
发表时间:
2020
期刊:
Proceedings of the 41st ACM SIGPLAN Conference on Programming Language Design and Implementation
影响因子:
--
作者:
Fabian Ritter;Sebastian Hack
通讯作者:
Sebastian Hack
DOI:
10.1109/pmbs.2018.8641578
发表时间:
2018
期刊:
2018 IEEE/ACM Performance Modeling, Benchmarking and Simulation of High Performance Computer Systems (PMBS)
影响因子:
--
作者:
Jan Laukemann;Julian Hammer;Johannes Hofmann;G. Hager;G. Wellein
通讯作者:
G. Wellein
DOI:
10.1145/3385412.3386008
发表时间:
2019
期刊:
Proceedings of the 41st ACM SIGPLAN Conference on Programming Language Design and Implementation
影响因子:
--
作者:
Pepe Vila;P. Ganty;M. Guarnieri;Boris Köpf
通讯作者:
Boris Köpf