Bringing Water to the Fields: A Code Generation Pipeline for SWE Applications on FPGAs. Alt, C. Master's thesis, Friedrich Alexander Universität, Erlangen, 2022.
Bringing Water to the Fields: A Code Generation Pipeline for SWE Applications on FPGAs [pdf]Paper  abstract   bibtex   
When it comes to accelerator devices for compute-intensive applications, an Field Programmable Gate Array (FPGA) can be classified between a Graphical Processing Unit (GPU) and an Application-Specific Integrated Circuit (ASIC). FPGAs allow a direct mapping of applications to circuits but are also recon- figurable. Thus, they are a promising architecture for acceleration of various applications. However, even with the High Level Synthesis (HLS) approach that Intel’s oneAPI provides, developing code for FPGAs remains tedious. To overcome some of these issues and use existing high level problem abstractions, we present a code generation pipeline. It starts with the implementation of quadrature-free Discontinuous Galerkin (DG) discretization of the Shallow Wa- ter Equation (SWE) in Generation of Higher-Order Discretizations Deployed as ExaSlang Specifications (GHODDESS), uses pystencils with a custom backend for stencil generation and targets StencilStream, an FPGA library implemented on top of the oneAPI. The compiler toolchain of the oneAPI is then used to synthesise executables for FPGA hardware. This approach enables us to reuse the implementation of the SWE in GHODDESS, which initially has no FPGA backend. We show that the pipeline works for complex scenarios by generating simulation applications with up to 3500 lines of code. These generated shallow water simulations fully run on the FPGA device. The performance of the generated applications is promising, as it is mostly similar as a parallelized and vectorized Central Processing Unit (CPU) reference.

Downloads: 0