Taming hardware event samples for FDO compilation

作者
Dehao Chen,Neil Vachharajani,Robert Hundt,Shih-Wei Liao,Vinodha Ramasamy,Paul Yuan,Wenguang Chen,Weimin Zheng
标识
DOI:10.1145/1772954.1772963
摘要

Feedback-directed optimization (FDO) is effective in improving application runtime performance, but has not been widely adopted due to the tedious dual-compilation model, the difficulties in generating representative training data sets, and the high runtime overhead of profile collection. The use of hardware-event sampling to generate estimated edge profiles overcomes these drawbacks. Yet, hardware event samples are typically not precise at the instruction or basic-block granularity. These inaccuracies lead to missed performance when compared to instrumentation-based [email protected] In this paper, we use multiple hardware event profiles and supervised learning techniques to generate heuristics for improved precision of basic-block-level sample profiles, and to further improve the smoothing algorithms used to construct edge profiles. We demonstrate that sampling-based FDO can achieve an average of 78% of the performance gains obtained using instrumentation-based exact edge profiles for SPEC2000 benchmarks, matching or beating instrumentation-based FDO in many cases. The overhead of collection is only 0.74% on average, while compiler based instrumentation incurs 6.8%-53.5% overhead (and 10x overhead on an industrial web search application), and dynamic instrumentation incurs 28.6%-1639.2% overhead.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
珍珠奶茶发布了新的文献求助10
刚刚
花渐开完成签到,获得积分20
1秒前
北岭梅花香到骨完成签到,获得积分10
1秒前
jinmei2025完成签到,获得积分10
1秒前
1秒前
科研达人完成签到,获得积分10
1秒前
迅速的新竹完成签到,获得积分10
1秒前
余三心完成签到,获得积分10
2秒前
DoctorSUN完成签到,获得积分10
2秒前
v0id的应助被整齐的沛凝采纳,获得10
2秒前
小岚花完成签到 ,获得积分10
3秒前
3秒前
852的应助被沙克几十块采纳,获得10
4秒前
呆呆的派大兴完成签到 ,获得积分10
4秒前
4秒前
中南海完成签到,获得积分10
4秒前
慕青的应助被超级玛丽采纳,获得10
4秒前
ggguang珥完成签到 ,获得积分10
5秒前
复杂的师完成签到,获得积分10
5秒前
5秒前
辣椒鱼完成签到,获得积分10
5秒前
Su完成签到,获得积分10
6秒前
梵高完成签到,获得积分10
6秒前
俭朴的迎夏完成签到,获得积分10
6秒前
esther颖完成签到,获得积分10
6秒前
7秒前
罗成仁完成签到,获得积分10
7秒前
威武鸽子完成签到,获得积分10
7秒前
一叶知秋完成签到,获得积分10
7秒前
苦与乐完成签到 ,获得积分10
7秒前
小二_来篇一作完成签到,获得积分10
7秒前
离开时是天命完成签到,获得积分10
8秒前
nullchuang完成签到,获得积分10
8秒前
yinzhang5完成签到,获得积分10
8秒前
安桉发布了新的文献求助10
8秒前
斯文败类的应助被dyvdyvaass采纳,获得10
9秒前
RRROP完成签到,获得积分20
9秒前
yyy_吖完成签到,获得积分10
9秒前
小马甲的应助被行程采纳,获得10
9秒前
爆米花的应助被内向的鸽子采纳,获得10
9秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Encyclopedia of Modern Artificial Intelligence 1000
Особенности технологий и методов информационно-психологических войн СССР с Великобританией и США в период 1939-1953 гг 1000
Das Matthäusevangelium: Kapitel 1:1–17 1000
IRTSD: Open-Source Data and Toolset for Electromagnetic Transient Analysis of Disturbances and IBR Control Malfunctions in Transmission Systems 1000
Entre Praga y Madrid : los contactos checoslovaco-españoles (1948-1977) 600
A REVIEW OF THE V-22 DYNAMICS VALIDATION PROGRAM 600
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 计算机科学 工程类 有机化学 化学工程 生物化学 物理 复合材料 内科学 催化作用 光电子学 人工智能 细胞生物学 无机化学 物理化学 数学
热门帖子
关注 科研通微信公众号,转发送积分 8130204
求助须知:如何正确求助?哪些是违规求助? 9532438
关于积分的说明 21595606
捐赠科研通 7711965
什么是DOI,文献DOI怎么找? 3418072
关于科研通互助平台的介绍 2543766
邀请新用户注册赠送积分活动 2459303