Offloading compute intensive nested loops to execute on FPGA accelerators have been demonstrated by numerous researchers as an effective performance enhancement technique across numerous application domains. To construct such accelerators with high design productivity, researchers have increasingly turned to the use of overlay architectures as an intermediate generation target built on top of off-the-shelf FPGAs. However, achieving the desired performance-overhead trade-off remains a major productivity challenge as complex application-specific customizations over a large design space covering multiple architectural parameters are needed.
In this work, an automatic nested loop acceleration framework utilizing a regular soft coarse-grained reconfigurable array (SCGRA) overlay is presented. Given high-level resource constraints, the framework automatically customizes the overlay architectural design parameters, high-level compilation options as well as communication between the accelerator and the host processor for optimized performance specifically to the given application. In our experiments, at a cost of 10 to 20 minutes additional tools run time, the proposed customization process resulted in up to 5 times additional speedup over a baseline accelerator generated by the same framework without customization. Overall, when compared to the equivalent software running on the host ARM processor alone on the Zedboard, the resulting accelerators achieved up to 10 times speedup.
Resource-Aware Just-in-Time OpenCL Compiler for Coarse-Grained FPGA Overlays
FPGA供应商最近开始关注OpenCL for FPGA,因为它能够利用异构计算平台固有的并行性。OpenCL允许在主机上运行的程序启动加速器内核,这些加速器内核可以在运行时针对特定架构进行编译,从而实现可移植性。然而,在使用FPGA供应商提供的OpenCL工具时,过高的编译时间(特别是FPGA放置和布线时间)是一个主要的绊脚石。长的编译时间意味着这些工具不能有效地使用即时(JIT)编译或运行时性能扩展。粗粒度覆盖代表了一种可能的解决方案,因为它们具有粗粒度和快速编译的优点。在本文中,我们提出了一种运行时编译的OpenCL内核的DSP块为基础的粗粒度覆盖,而不是直接到细粒度的FPGA结构的方法。所提出的方法允许JIT编译和按需资源感知的内核复制,以更好地利用可用的覆盖资源,提高抽象级别,同时显着减少编译时间。我们进一步证明,这种方法甚至可以用于运行时编译OpenCL内核的嵌入式异构Zynq设备的ARM处理器上。
SkipOPU: An FPGA-based Overlay Processor for Large Language Models with Dynamically Allocated Computation
University of California, Los Angeles(加州大学洛杉矶分校);Eastern Institute of Technology(宁波诺丁汉大学);Institute of Digital Twin, Eastern Institute of Technology(宁波诺丁汉大学数字孪生研究院);Ningbo Key Laboratory of Spatial Intelligence and Digital Derivative, Institute of Digital Twin, Eastern Institute of Technology(宁波诺丁汉大学数字孪生研究院空间智能与数字衍生宁波市重点实验室);Chiplet CAD and Manufacturing Engineering Research Center of Zhejiang Province, Ningbo Institute of Digital Twin, Eastern Institute of Technology(浙江省芯片级封装CAD与制造工程研究中心,宁波诺丁汉大学数字孪生研究院)