arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2511.19764cs.PLcs.ARcs.SE
收藏

通过性能分析理解加速器编译器

Understanding Accelerator Compilers via Performance Profiling

Cornell University(康奈尔大学)

Ayaka Yorihiro, Griffin Berlstein, Pedro Pontes García, Kevin Laeufer, Adrian Sampson

AI总结:

Petal通过周期级性能分析工具帮助理解ADL编译器决策对性能的影响,识别并指导加速器设计中的性能问题优化。

摘要:

加速器设计语言(ADLs)是一种将高级语言编译为硬件单元的高阶语言,帮助领域专家快速设计高效的专用硬件。ADL编译器优化数据路径,并将软件样的控制流构造转换为控制路径。此类编译器本质上是复杂的且往往不可预测:它们必须弥合高级语义与周期级调度之间的广阔语义差距,并且通常依赖于先进的启发式方法来优化电路。所得到的性能可能难以控制,需要猜测和解决生成硬件中的性能问题。我们推测ADL编译器永远不会完美:某些性能不可预测性是其解决问题的本质属性。在替代编译器完美性的基础上,我们主张编译器理解工具,使ADL程序员能够了解编译器的决策如何影响性能。我们介绍了Petal,一种用于Calyx中间语言(IL)的周期级性能分析工具。Petal通过在Calyx代码中插入探针,然后从寄存器传输级模拟中分析跟踪。它将跟踪中的事件映射回Calyx代码中的高级控制构造,以跟踪每个构造在何时处于活跃状态的时钟周期。通过案例研究,我们证明Petal的周期级性能分析可以识别现有加速器设计中的性能问题。我们显示这些见解还可以指导开发人员走向编译器无法自动执行的优化,包括一个应用总周期减少46.9%。

英文摘要:

Accelerator design languages (ADLs), high-level languages that compile to hardware units, help domain experts quickly design efficient application-specific hardware. ADL compilers optimize datapaths and convert software-like control flow constructs into control paths. Such compilers are necessarily complex and often unpredictable: they must bridge the wide semantic gap between high-level semantics and cycle-level schedules, and they typically rely on advanced heuristics to optimize circuits. The resulting performance can be difficult to control, requiring guesswork to find and resolve performance problems in the generated hardware. We conjecture that ADL compilers will never be perfect: some performance unpredictability is endemic to the problem they solve. In lieu of compiler perfection, we argue for compiler understanding tools that give ADL programmers insight into how the compiler's decisions affect performance. We introduce Petal, a cycle-level Petal for the Calyx intermediate language (IL). Petal instruments the Calyx code with probes and then analyzes the trace from a register-transfer-level simulation. It maps the events in the trace back to high-level control constructs in the Calyx code to track the clock cycles when each construct was active. Using case studies, we demonstrate that Petal's cycle-level profiles can identify performance problems in existing accelerator designs. We show that these insights can also guide developers toward optimizations that the compiler was unable to perform automatically, including a reduction by 46.9\% of total cycles for one application.

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

↑