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

可重构硬件加速器的制造商驱动仿真

Compiler-Driven Simulation of Reconfigurable Hardware Accelerators

Cornell University(康奈尔大学);Xilinx Inc.(赛灵思公司(西灵克斯公司))

Zhijing Li, Yuwei Ye, Stephen Neuendorffer, Adrian Sampso

摘要:

随着定制的加速器设计越来越受欢迎,以跟上高性能计算的需求,它提出了挑战,现代模拟器设计,以适应这样一个大的各种各样的加速器。现有的模拟器倾向于两个极端:低级和通用的方法,如RTL模拟,可以模拟任何硬件,但需要大量的工作和较长的执行时间;和更高级别的应用程序特定的模型,可以更快,更容易使用,但需要一次性的工程工作。本文提出了一种编译器驱动的仿真工作流程,可以对可配置的硬件加速器进行建模。其核心思想是通过开发一种能够灵活地表示各种硬件结构的中间语言,将结构表示与仿真分离。我们设计的事件队列(EQueue)方言MLIR,方言,可以模拟任意硬件加速器与显式的数据移动和分布式基于事件的控制,我们还实现了一个通用的模拟引擎模型EQueue程序与混合MLIR方言代表不同的抽象层次。我们展示了两个案例研究的Eccile实现的加速器:在现代FPGA的卷积和SIMD处理器的脉动阵列。在前者中,我们表明EQueue模拟是一个国家的最先进的模拟器一样准确,同时提供更高的可扩展性和更低的迭代成本,通过编译器通过。在后者中,我们证明我们的仿真流程可以指导设计人员有效地改善他们的设计使用可视化的仿真输出。

英文摘要:

As customized accelerator design has become increasingly popular to keep up with the demand for high performance computing, it poses challenges for modern simulator design to adapt to such a large variety of accelerators. Existing simulators tend to two extremes: low-level and general approaches, such as RTL simulation, that can model any hardware but require substantial effort and long execution times; and higher-level application-specific models that can be much faster and easier to use but require one-off engineering effort. This work proposes a compiler-driven simulation workflow that can model configurable hardware accelerator. The key idea is to separate structure representation from simulation by developing an intermediate language that can flexibly represent a wide variety of hardware constructs. We design the Event Queue (EQueue) dialect of MLIR, a dialect that can model arbitrary hardware accelerators with explicit data movement and distributed event-based control; we also implement a generic simulation engine to model EQueue programs with hybrid MLIR dialects representing different abstraction levels. We demonstrate two case studies of EQueue-implemented accelerators: the systolic array of convolution and SIMD processors in a modern FPGA. In the former we show EQueue simulation is as accurate as a state-of-the-art simulator, while offering higher extensibility and lower iteration cost via compiler passes. In the latter we demonstrate our simulation flow can guide designer efficiently improve their design using visualizable simulation outputs.

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

↑