统一加速器生成器中的静态与动态中间语言
Unifying Static and Dynamic Intermediate Languages for Accelerator Generators
AI总结:
Piezo通过单一中间语言统一加速器设计中的静态与动态控制,实现优化并支持从动态到静态的转换,作为Calyx扩展验证其有效性。
摘要:
加速器设计语言(ADL)的编译器将高级语言翻译为特定应用的硬件。ADL编译器依赖硬件控制接口来组合硬件单元。存在两种选择:静态控制,依赖于周期级时序;或动态控制,使用显式信号来避免依赖时序细节。静态控制高效但脆弱;动态控制则产生硬件成本以支持组合推理。Piezo是一个ADL编译器,它在单一中间语言(IL)中统一了静态和动态控制。其关键见解是,IL的静态片段是动态片段的一种细化:静态代码允许动态等价物运行时行为的一个子集。Piezo可以通过结合来自静态和动态子模块的事实来优化代码,并机会性地将代码从动态控制风格转换为静态控制风格。我们将Piezo实现为现有动态ADL编译器Calyx的扩展。我们使用Piezo实现了一个MLIR前端、一个脉动阵列生成器和一个分组调度硬件生成器,以展示其优化以及所启用的静态-动态交互。
英文摘要:
Compilers for accelerator design languages (ADLs) translate high-level languages into application-specific hardware. ADL compilers rely on a hardware control interface to compose hardware units. There are two choices: static control, which relies on cycle-level timing; or dynamic control, which uses explicit signalling to avoid depending on timing details. Static control is efficient but brittle; dynamic control incurs hardware costs to support compositional reasoning. Piezo is an ADL compiler that unifies static and dynamic control in a single intermediate language (IL). Its key insight is that the IL's static fragment is a refinement of its dynamic fragment: static code admits a subset of the run-time behaviors of the dynamic equivalent. Piezo can optimize code by combining facts from static and dynamic submodules, and it opportunistically converts code from dynamic to static control styles. We implement Piezo as an extension to an existing dynamic ADL compiler, Calyx. We use Piezo to implement an MLIR frontend, a systolic array generator, and a packet-scheduling hardware generator to demonstrate its optimizations and the static-dynamic interactions it enables.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。