arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.13513cs.AR
收藏

Guac:基于 SSA 的、能量感知的从 LLVM-IR 生成粗粒度合并加速器

Guac: Energy-Aware and SSA-Based Generation of Coarse-Grained Merged Accelerators from LLVM-IR

Iulian Brumar, Rodrigo Rocha, Alex Bernat, Devashree Tripathy, David Brooks, Gu-Yeon Wei

AI总结:

本文提出 Guac,一种能量感知且基于 SSA 的粗粒度合并加速器生成方法,通过集成成本模型优化 CGFM 算法,在强资源共享基线下将能量节省较最接近工作提高一倍以上。

摘要:

为资源和功耗受限的应用设计加速器是一项艰巨的任务。高层次综合(HLS)通过资源共享来应对这些约束,资源共享是 HLS 绑定阶段的一种优化,它将多个操作映射到同一个功能单元。然而,资源共享通常仅限于在基本块内重用指令。它不是全局搜索最佳的待合并控制与数据流图(CDFG),而是受限于现有的指令映射和调度。在中间表示(IR)层面的粗粒度函数合并(CGFM)可以重用控制流和数据流模式,而无需处理将操作映射到功能单元、连线和寄存器上的调度后复杂性。由 CGFM 生成的合并函数可以通过 HLS 转换为 RTL,从而得到粗粒度合并加速器(CGMA)。CGMA 在具有相似数据流和控制流模式的应用之间尤其有利。先前的工作使用 CGFM 生成 CGMA,但没有考虑哪种 CGFM 算法能最好地优化面积、功耗和能量成本。我们提出 Guac,一种能量感知且基于 SSA(静态单赋值)的 CGMA 生成方法。Guac 实现了一组新颖的成本模型集成,用于高效生成 CGMA。我们还表明,使用 SSA 形式合并控制流图和数据流图的 CGFM 算法优于先前的非 SSA CGFM 设计。我们证明了相对于现有技术,在面积、功耗和能量方面都有显著节省。特别是,在使用强资源共享基线的情况下,Guac 相对于最接近的相关工作将能量节省提高了一倍以上。

英文摘要:

Designing accelerators for resource- and power-constrained applications is a daunting task. High-level Synthesis (HLS) addresses these constraints through resource sharing, an optimization at the HLS binding stage that maps multiple operations to the same functional unit. However, resource sharing is often limited to reusing instructions within a basic block. Instead of searching globally for the best control and dataflow graphs (CDFGs) to combine, it is constrained by existing instruction mappings and schedules. Coarse-grained function merging (CGFM) at the intermediate representation (IR) level can reuse control and dataflow patterns without dealing with the post-scheduling complexity of mapping operations onto functional units, wires, and registers. The merged functions produced by CGFM can be translated to RTL by HLS, yielding Coarse Grained Merged Accelerators (CGMAs). CGMAs are especially profitable across applications with similar data- and control-flow patterns. Prior work has used CGFM to generate CGMAs without regard for which CGFM algorithms best optimize area, power, and energy costs. We propose Guac, an energy-aware and SSA-based (static single assignment) CGMA generation methodology. Guac implements a novel ensemble of cost models for efficient CGMA generation. We also show that CGFM algorithms using SSA form to merge control- and dataflow graphs outperform prior non-SSA CGFM designs. We demonstrate significant area, power, and energy savings with respect to the state of the art. In particular, Guac more than doubles energy savings with respect to the closest related work while using a strong resource-sharing baseline.

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

↑