为自适应多版本应用程序寻找代表性的优化集
Finding representative sets of optimizations for adaptive multiversioning applications
摘要:
迭代编译是一种广泛采用的技术,用于在快速发展的硬件和软件环境中针对不同的约束(例如性能、代码大小和功耗)优化程序。然而,在静态编译程序的情况下,它通常限于针对特定数据集的优化,并且可能不适用于跨程序阶段、多个数据集或在异构、可重新配置和虚拟环境中执行时表现出不同运行时行为的应用程序。最近已经引入了几个框架来解决这些问题,并使运行时优化和适应静态编译程序的基础上静态函数多版本和在线程序行为的监控。在这篇文章中,我们提出了一种新的技术,为这些框架选择一组最小的代表性优化变量(函数版本),同时避免可用数据集的性能损失和代码大小爆炸。我们开发了一种新的映射机制,使用流行的决策树或基于规则归纳的机器学习技术,以快速选择最佳的代码版本在运行时的数据集的基础上的功能,并尽量减少选择开销。这些技术使得能够创建自调优静态二进制文件或库,以适应运行时不断变化的行为和环境,使用阶段式编译,不需要复杂的重新编译框架,同时有效地优于传统的单版本非自适应代码。
英文摘要:
Iterative compilation is a widely adopted technique to optimize programs for different constraints such as performance, code size and power consumption in rapidly evolving hardware and software environments. However, in case of statically compiled programs, it is often restricted to optimizations for a specific dataset and may not be applicable to applications that exhibit different run-time behavior across program phases, multiple datasets or when executed in heterogeneous, reconfigurable and virtual environments. Several frameworks have been recently introduced to tackle these problems and enable run-time optimization and adaptation for statically compiled programs based on static function multiversioning and monitoring of online program behavior. In this article, we present a novel technique to select a minimal set of representative optimization variants (function versions) for such frameworks while avoiding performance loss across available datasets and code-size explosion. We developed a novel mapping mechanism using popular decision tree or rule induction based machine learning techniques to rapidly select best code versions at run-time based on dataset features and minimize selection overhead. These techniques enable creation of self-tuning static binaries or libraries adaptable to changing behavior and environments at run-time using staged compilation that do not require complex recompilation frameworks while effectively outperforming traditional single-version non-adaptable code.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。