arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2308.13274cs.DC
收藏

Fortran高级综合:降低在FPGA上加速HPC代码的门槛

Fortran High-Level Synthesis: Reducing the barriers to accelerating HPC codes on FPGAs

Gabriel Rodriguez-Canal, Nick Brown, Tim Dykes, Jessica R. Jones, Utz-Uwe Haus

AI总结:

针对科学计算常用的Fortran代码难以直接用于FPGA加速的问题,研究通过连接LLVM Flang前端与AMD Xilinx的LLVM后端,实现Fortran对AMD Xilinx FPGA的一等语言支持,降低了FPGA用于科学计算的门槛。

摘要:

近年来,使用现场可编程门阵列(FPGA)加速科学应用的趋势日益增长,众多应用已证明FPGA对高性能工作负载的优势。然而,尽管高级综合(HLS)通过支持程序员使用C++大幅降低了FPGA编程的入门门槛,但一个主要挑战是:这些代码最初大多并非用C++编写。相反,Fortran是科学计算的通用语言,因此即便在考虑FPGA之前,也需要一个复杂且耗时的初始步骤将代码转换为C++。\n本文中,我们介绍了通过将LLVM Flang前端连接到AMD Xilinx的LLVM后端,为AMD Xilinx FPGA提供Fortran支持的工作。这使得程序员能够将Fortran作为FPGA编程的一等语言使用,并且如我们所展示的,可享受HLS C++提供的所有调优和优化机会。此外,我们证明,与C++相比,Fortran的某些语言特性使其对FPGA编程特别有利。这项工作的成果是降低了将FPGA用于科学计算的入门门槛,使程序员能够直接在FPGA上利用其现有代码库和首选语言。

英文摘要:

In recent years the use of FPGAs to accelerate scientific applications has grown, with numerous applications demonstrating the benefit of FPGAs for high performance workloads. However, whilst High Level Synthesis (HLS) has significantly lowered the barrier to entry in programming FPGAs by enabling programmers to use C++, a major challenge is that most often these codes are not originally written in C++. Instead, Fortran is the lingua franca of scientific computing and-so it requires a complex and time consuming initial step to convert into C++ even before considering the FPGA. In this paper we describe work enabling Fortran for AMD Xilinx FPGAs by connecting the LLVM Flang front end to AMD Xilinx's LLVM back end. This enables programmers to use Fortran as a first-class language for programming FPGAs, and as we demonstrate enjoy all the tuning and optimisation opportunities that HLS C++ provides. Furthermore, we demonstrate that certain language features of Fortran make it especially beneficial for programming FPGAs compared to C++. The result of this work is a lowering of the barrier to entry in using FPGAs for scientific computing, enabling programmers to leverage their existing codebase and language of choice on the FPGA directly.

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

↑