NEURA:一种统一且可重定向的编译框架,用于粗粒度可重构架构
NEURA: A Unified and Retargetable Compilation Framework for Coarse-Grained Reconfigurable Architectures
AI总结:
NEURA通过统一的数据流中间表示解决CGRA中的控制-数据流不匹配问题,实现高效加速并支持多种执行模型的重定向。
摘要:
粗粒度可重构架构(CGRAs)是一种有前景且多功能的加速器平台,平衡了专用加速器的性能效率与软件可编程性。然而,加速内核中的控制流严重阻碍了其潜力,因为控制流(如循环、分支)与CGRA织物的并行、数据驱动特性不兼容。本文介绍NEURA,一种统一且可重定向的编译框架,系统性地解决CGRA中的控制-数据流不匹配问题。NEURA的核心创新是基于预测类型系统的新型纯数据流中间表示(IR)。在该IR中,控制上下文作为每个数据的谓词嵌入,使控制成为数据的固有属性。这种机制使NEURA能够系统地将复杂控制流扁平化为单一统一的数据流图。这种统一的表示解耦了内核表示与硬件,使NEURA能够重定向具有不同执行模型和微架构特征的多种CGRAs。当针对高性能时空CGRA进行目标时,NEURA在内核基准测试中实现了2.20倍的加速,并在实际应用中达到2.71倍的几何平均加速,优于最先进的高性能基准。此外,当重定向到仅空间的CGRA时,它也提供了与最先进的低功耗CGRA相竞争的解决方案。NEURA是开源的,可在https://github.com/coredac/neura上获取。
英文摘要:
Coarse-Grained Reconfigurable Architectures (CGRAs) are a promising and versatile accelerator platform, offering a balance between the performance and efficiency of specialized accelerators and the software programmability. However, their full potential is severely hindered by control flow in accelerated kernels, as the control flow (e.g., loops, branches) is fundamentally incompatible with the parallel, data-driven CGRA fabric. Prior strategies to resolve this mismatch in CGRA kernel acceleration are either inefficient, sacrificing performance for generality, or lack generality due to the difficulty of adapting them across different execution models. Thus, a general and unified solution for efficient CGRA kernel acceleration remains elusive. This paper introduces NEURA, a unified and retargetable compilation framework that systematically resolves the control-dataflow mismatch in CGRAs. NEURA's core innovation is a novel, pure dataflow intermediate representation (IR) built on a predicated type system. In this IR, control contexts are embedded as a predicate within each data, making control an intrinsic property of data. This mechanism enables NEURA to systematically flatten complex control flow into a single unified dataflow graph. This unified representation decouples kernel representation from hardware, empowering NEURA to retarget diverse CGRAs with different execution models and microarchitectural features. When targeted to a high-performance spatio-temporal CGRA, NEURA delivers a 2.20x speedup on kernel benchmarks and up to 2.71x geometric mean speedup on real-world applications over state-of-the-art (SOTA) high-performance baselines. It also provides a competitive solution against the SOTA low-power CGRA when retargeted to a spatial-only CGRA. NEURA is open-source and available at https://github.com/coredac/neura.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。