Multi-objective Exploration for Practical Optimization Decisions in Binary Translation

Author:

Park Sunghyun1,Wu Youfeng2,Lee Janghaeng2,Aupov Amir2,Mahlke Scott1

Affiliation:

1. University of Michigan, Ann Arbor, Michigan

2. Intel Corporation, Santa Clara, CA

Abstract

In the design of mobile systems, hardware/software (HW/SW) co-design has important advantages by creating specialized hardware for the performance or power optimizations. Dynamic binary translation (DBT) is a key component in co-design. During the translation, a dynamic optimizer in the DBT system applies various software optimizations to improve the quality of the translated code. With dynamic optimization, optimization time is an exposed run-time overhead and useful analyses are often restricted due to their high costs. Thus, a dynamic optimizer needs to make smart decisions with limited analysis information, which complicates the design of optimization decision models and often causes failures in human-made heuristics. In mobile systems, this problem is even more challenging because of strict constraints on computing capabilities and memory size. To overcome the challenge, we investigate an opportunity to build practical optimization decision models for DBT by using machine learning techniques. As the first step, loop unrolling is chosen as the representative optimization. We base our approach on the industrial strength DBT infrastructure and conduct evaluation with 17,116 unrollable loops collected from 200 benchmarks and real-life programs across various domains. By utilizing all available features that are potentially important for loop unrolling decision, we identify the best classification algorithm for our infrastructure with consideration for both prediction accuracy and cost. The greedy feature selection algorithm is then applied to the classification algorithm to distinguish its significant features and cut down the feature space. By maintaining significant features only, the best affordable classifier, which satisfies the budgets allocated to the decision process, shows 74.5% of prediction accuracy for the optimal unroll factor and realizes an average 20.9% reduction in dynamic instruction count during the steady-state translated code execution. For comparison, the best baseline heuristic achieves 46.0% prediction accuracy with an average 13.6% instruction count reduction. Given that the infrastructure is already highly optimized and the ideal upper bound for instruction reduction is observed at 23.8%, we believe this result is noteworthy.

Publisher

Association for Computing Machinery (ACM)

Subject

Hardware and Architecture,Software

Reference42 articles.

1. 2019-02-08. Intel Core i7 Embedded Processor. https://ark.intel.com/products/series/122593/8th-Generation-Intel-Core-i7-Processors#@embedded. 2019-02-08. Intel Core i7 Embedded Processor. https://ark.intel.com/products/series/122593/8th-Generation-Intel-Core-i7-Processors#@embedded.

2. 2019-06-02. 3DMark. https://www.3dmark.com/. 2019-06-02. 3DMark. https://www.3dmark.com/.

3. 2019-06-02. FPMark. https://www.eembc.org/fpmark/. 2019-06-02. FPMark. https://www.eembc.org/fpmark/.

4. 2019-06-02. Geekbench. https://www.geekbench.com/. 2019-06-02. Geekbench. https://www.geekbench.com/.

5. 2019-06-02. SYSmark. https://bapco.com/products/sysmark-2018/. 2019-06-02. SYSmark. https://bapco.com/products/sysmark-2018/.

Cited by 2 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. SRTuner: Effective Compiler Optimization Customization by Exposing Synergistic Relations;2022 IEEE/ACM International Symposium on Code Generation and Optimization (CGO);2022-04-02

2. An energy efficient multi-target binary translator for instruction and data level parallelism exploitation;Design Automation for Embedded Systems;2022-01-14

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3