arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2501.09118cs.AR
收藏

Stream-HLS:面向数据流的自动加速

Stream-HLS: Towards Automatic Dataflow Acceleration

Suhail Basalama, Jason Cong

AI总结:

针对现有HLS自动化框架存在的未探索循环调度、仅支持单内核、缺乏全局设计空间探索等问题,研究提出基于MLIR的Stream-HLS框架,可自动生成FPGA优化数据流架构,性能显著优于现有方案且已开源。

摘要:

高级综合(HLS)已为众多软件应用实现了定制硬件电路的快速开发。然而,使用HLS开发高性能硬件电路仍非易事,需要具备硬件设计专业知识。此外,硬件设计空间(尤其是针对多内核应用的设计空间)呈指数级增长。因此,近年来已有多种HLS自动化与抽象框架被提出,但仍有诸多问题未得到解决,这些问题包括:1)主要依赖硬件指令(编译指示)来应用硬件优化,未探索循环调度的优化空间;2)仅针对单内核应用;3)缺乏自动化和/或全局的设计空间探索;4)缺失关键的硬件优化,例如面向多内核应用的图级流水线。\n为应对这些挑战,我们在流行的多级中间表示(MLIR)基础设施之上提出了一种名为Stream-HLS的全新方法与框架。该框架接收C/C++或PyTorch软件代码,自动生成优化后的数据流架构以及用于现场可编程门阵列(FPGA)的主机代码。为实现这一目标,我们开发了一种精确的分析性能模型,用于数据流架构的全局调度与优化。我们使用多种标准HLS基准测试以及来自Transformer模型、卷积神经网络和多层感知器的真实基准测试对Stream-HLS进行了评估。Stream-HLS的设计性能分别优于现有最先进自动化框架的设计、以及抽象框架的手动优化设计,几何平均加速比最高分别达79.43倍和10.62倍。最后,Stream-HLS框架采用模块化设计,具备可扩展性,已在https://github.com/UCLA-VAST/Stream-HLS(https://doi.org/10.5281/zenodo.14585909)开源。

英文摘要:

High-level synthesis (HLS) has enabled the rapid development of custom hardware circuits for many software applications. However, developing high-performance hardware circuits using HLS is still a non-trivial task requiring expertise in hardware design. Further, the hardware design space, especially for multi-kernel applications, grows exponentially. Therefore, several HLS automation and abstraction frameworks have been proposed recently, but many issues remain unresolved. These issues include: 1) relying mainly on hardware directives (pragmas) to apply hardware optimizations without exploring loop scheduling opportunities. 2) targeting single-kernel applications only. 3) lacking automatic and/or global design space exploration. 4) missing critical hardware optimizations, such as graph-level pipelining for multi-kernel applications. To address these challenges, we propose a novel methodology and framework on top of the popular multi-level intermediate representation (MLIR) infrastructure called Stream-HLS. Our framework takes a C/C++ or PyTorch software code and automatically generates an optimized dataflow architecture along with host code for field-programmable gate arrays (FPGAs). To achieve this, we developed an accurate analytical performance model for global scheduling and optimization of dataflow architectures. Stream-HLS is evaluated using various standard HLS benchmarks and real-world benchmarks from transformer models, convolution neural networks, and multilayer perceptrons. Stream-HLS designs outperform the designs of prior state-of-the-art automation frameworks and manually-optimized designs of abstraction frameworks by up to $79.43\times$ and $10.62\times$ geometric means respectively. Finally, the Stream-HLS framework is modularized, extensible, and open-sourced at \url{https://github.com/UCLA-VAST/Stream-HLS} (\url{https://doi.org/10.5281/zenodo.14585909}).

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

↑