arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2306.00210cs.PLcs.DCcs.LG
收藏

PERFOGRAPH:一种面向性能优化和程序分析的数值感知程序图表示

PERFOGRAPH: A Numerical Aware Program Graph Representation for Performance Optimization and Program Analysis

Iowa State University(爱荷华州立大学);Intel Labs(英特尔研究院)

Ali TehraniJamsaz, Quazi Ishtiaque Mahmud, Le Chen, Nesreen K. Ahmed, Ali Jannesari

AI总结:

本文提出数值感知的程序图表示PERFOGRAPH,通过新节点、边和嵌入方法捕获数值与聚合数据结构信息,在Device Mapping等性能优化任务中显著降低错误率并取得最优结果。

摘要:

机器学习的显著增长和巨大成功已将其应用扩展到编程语言和程序分析领域。然而,采用最新机器学习方法的一个关键挑战是编程语言的表示问题,这直接影响机器学习方法对程序进行推理的能力。以往表示工作中缺乏数值感知、聚合数据结构信息不足以及变量呈现方式不当,限制了它们的性能。为了克服当前程序表示的局限性和挑战,我们提出了一种基于图的程序表示方法,称为PERFOGRAPH。PERFOGRAPH通过引入新的节点和边,能够捕获数值信息和聚合数据结构。此外,我们提出了一种适配的嵌入方法以融入数值感知。这些增强使PERFOGRAPH成为一种高度灵活且可扩展的表示,能够有效捕获程序复杂的依赖关系和语义。因此,它可作为程序分析、性能优化和并行性发现等多种应用的有力工具。我们的实验结果表明,PERFOGRAPH优于现有表示,并在著名的Device Mapping挑战中通过将错误率降低7.4%(AMD数据集)和10%(NVIDIA数据集),取得了新的最先进结果。它还在多种性能优化任务中取得了新的最先进结果,例如并行性发现以及NUMA和Prefetchers配置预测。

英文摘要:

The remarkable growth and significant success of machine learning have expanded its applications into programming languages and program analysis. However, a key challenge in adopting the latest machine learning methods is the representation of programming languages, which directly impacts the ability of machine learning methods to reason about programs. The absence of numerical awareness, aggregate data structure information, and improper way of presenting variables in previous representation works have limited their performances. To overcome the limitations and challenges of current program representations, we propose a graph-based program representation called PERFOGRAPH. PERFOGRAPH can capture numerical information and the aggregate data structure by introducing new nodes and edges. Furthermore, we propose an adapted embedding method to incorporate numerical awareness. These enhancements make PERFOGRAPH a highly flexible and scalable representation that effectively captures programs intricate dependencies and semantics. Consequently, it serves as a powerful tool for various applications such as program analysis, performance optimization, and parallelism discovery. Our experimental results demonstrate that PERFOGRAPH outperforms existing representations and sets new state-of-the-art results by reducing the error rate by 7.4% (AMD dataset) and 10% (NVIDIA dataset) in the well-known Device Mapping challenge. It also sets new state-of-the-art results in various performance optimization tasks like Parallelism Discovery and NUMA and Prefetchers Configuration prediction.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑