Efficient Approaches for GEMM Acceleration on Leading AI-Optimized FPGAs
Endri Taka, Dimitrios Gourounas, Andreas Gerstlauer, Diana Marculescu, Aman Arora
TL;DR
This paper addresses GEMM acceleration on two AI-optimized FPGAs with distinct architectures: Versal ACAP (out-of-fabric AIE) and Stratix 10 NX (in-fabric TBs). It proposes architecture-aware, systematic frameworks for GEMM design, including multi-level tiling, AIE/TB mapping, memory strategies, and RTL automation, supported by extensive design-space exploration. The results show up to $77$ TOPs (int8) on Versal and $68$ TOPs (int8) on Stratix, with energy efficiencies up to $0.94$ and $1.35$ TOPs/W respectively, illustrating strong on-chip data reuse and platform-specific bottlenecks. The study delivers actionable guidelines on memory mapping, dataflow, and programmability trade-offs, delivering practical impact for deploying GEMM-based DL workloads on these leading FPGA platforms.
Abstract
FPGAs are a promising platform for accelerating Deep Learning (DL) applications, due to their high performance, low power consumption, and reconfigurability. Recently, the leading FPGA vendors have enhanced their architectures to more efficiently support the computational demands of DL workloads. However, the two most prominent AI-optimized FPGAs, i.e., AMD/Xilinx Versal ACAP and Intel Stratix 10 NX, employ significantly different architectural approaches. This paper presents novel systematic frameworks to optimize the performance of General Matrix Multiplication (GEMM), a fundamental operation in DL workloads, by exploiting the unique and distinct architectural characteristics of each FPGA. Our evaluation on GEMM workloads for int8 precision shows up to 77 and 68 TOPs (int8) throughput, with up to 0.94 and 1.35 TOPs/W energy efficiency for Versal VC1902 and Stratix 10 NX, respectively. This work provides insights and guidelines for optimizing GEMM-based applications on both platforms, while also delving into their programmability trade-offs and associated challenges.
