从领域特定语言自动创建高带宽存储器体系结构:计算流体动力学案例
Automatic Creation of High-Bandwidth Memory Architectures from Domain-Specific Languages: The Case of Computational Fluid Dynamics
摘要:
数值模拟可以帮助解决复杂的问题。这些算法中的大多数都是大规模并行的,因此由于空间并行性,它们是FPGA加速的良好候选者。现代FPGA器件可以利用高带宽内存技术,但当应用程序是内存受限时,设计人员必须精心设计先进的通信和内存架构,以实现高效的数据移动和片上存储。这个开发过程需要硬件设计技能,这在特定领域的专家中是不常见的。在本文中,我们提出了一个自动化的工具流,从特定领域的语言(DSL)的张量表达式,以生成HBM配备FPGA的并行加速器。设计人员可以使用此流程来集成和评估各种编译器或硬件优化。我们使用计算流体动力学(CFD)作为一个典型的例子。我们的流程从张量操作的高级规范开始,并将基于MLIR的编译器与内部硬件生成流程相结合,以生成具有并行加速器和专用存储器架构的系统,该架构可以有效地移动数据,旨在充分利用可用的CPU-FPGA带宽。我们模拟了具有数百万个元素的应用程序,在针对Xilinx Alveo U280的情况下,使用一个计算单元和自定义精度实现了高达103 GFLOPS。我们的FPGA实现比专家精心设计的英特尔CPU实现节能高达25倍。
英文摘要:
Numerical simulations can help solve complex problems. Most of these algorithms are massively parallel and thus good candidates for FPGA acceleration thanks to spatial parallelism. Modern FPGA devices can leverage high-bandwidth memory technologies, but when applications are memory-bound designers must craft advanced communication and memory architectures for efficient data movement and on-chip storage. This development process requires hardware design skills that are uncommon in domain-specific experts. In this paper, we propose an automated tool flow from a domain-specific language (DSL) for tensor expressions to generate massively-parallel accelerators on HBM-equipped FPGAs. Designers can use this flow to integrate and evaluate various compiler or hardware optimizations. We use computational fluid dynamics (CFD) as a paradigmatic example. Our flow starts from the high-level specification of tensor operations and combines an MLIR-based compiler with an in-house hardware generation flow to generate systems with parallel accelerators and a specialized memory architecture that moves data efficiently, aiming at fully exploiting the available CPU-FPGA bandwidth. We simulated applications with millions of elements, achieving up to 103 GFLOPS with one compute unit and custom precision when targeting a Xilinx Alveo U280. Our FPGA implementation is up to 25x more energy-efficient than expert-crafted Intel CPU implementations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。