A Statically and Dynamically Scalable Soft GPGPU

Martin Langhammer, George A. Constantinides

Abstract

This paper introduces the "eGPU," a novel soft General-Purpose Graphics Processing Unit (GPGPU) architecture designed specifically for FPGAs. By aligning the processor's pipeline with the physical structure of the FPGA fabric, the eGPU achieves a clock rate of 771 MHz on Intel Agilex devices—nearly an order of magnitude faster than previous academic soft GPUs. This architecture bridges the gap between flexible but slow soft processors and high-performance but rigid custom logic, offering a scalable solution for parallel workloads.

Introduction

Modern FPGAs are equipped with thousands of hardened DSP blocks and floating-point operators, providing computational densities comparable to high-end GPUs. However, leveraging this power effectively remains a challenge. Developers typically choose between flexible soft RISC processors (e.g., Nios II), which offer low parallel performance, or custom RTL designs, which are time-consuming to develop and debug. Previous "Soft GPGPU" attempts often resulted in bloated designs (50K–300K LUTs) with low clock frequencies (30–100 MHz). The eGPU addresses this Performance-Power-Area (PPA) gap by providing a compact, high-speed SIMT (Single Instruction, Multiple Thread) processor optimized for underlying hardware.

Architecture and Scalability

The eGPU is designed as a lean, 8-stage SIMT processor. A key feature is its dual-mode scalability. Statically, users can parameterize the number of registers, shared memory size, and ALU features at compile time to fit specific resource constraints. Dynamically, the instruction set allows the processor to modify its "wavefront"—the active subset of threads—on a cycle-by-cycle basis. This dynamic reconfiguration is particularly effective for operations like vector reductions, where the number of active threads decreases over time, allowing the hardware to skip idle cycles and improve efficiency.

System-level architecture of the eGPU showing shared memory and streaming processor (SP) integration.

To further enhance throughput, the architecture supports an emulated "Quad Port" (QP) memory mode. This mode doubles write bandwidth, although it necessitates a slight reduction in clock frequency to approximately 600 MHz to maintain stability.

Physical-to-Pipeline Optimization

The primary innovation enabling the eGPU’s 771 MHz clock rate is its "Physical-to-Pipeline Mapping." Rather than implementing a generic architecture, the authors manually tuned the eGPU pipeline to match the physical layout of Intel Agilex FPGA "sectors," which consist of columns of DSPs and M20K memory blocks. By ensuring that logic levels align with these physical sector column ratios, the design hits the maximum speed of the hardened DSP blocks themselves.

Floorplan view demonstrating the mapping of eGPU logic components to the physical FPGA fabric.

This "close to metal" approach demonstrates that soft logic performance is not inherently limited by the fabric, but rather by how well the design respects the physical constraints of the hardware. Despite its high speed, the eGPU remains remarkably compact, requiring only ~5K ALMs in a base configuration—a 10x reduction in area compared to previous academic soft GPUs.

Performance Evaluation

The eGPU was evaluated using a suite of standard GPGPU kernels, including Vector Reduction, Matrix Transpose, Matrix-Matrix Multiplication (MMM), Bitonic Sort, and Fast Fourier Transform (FFT). It was compared against the Nios IIe commercial soft processor and FlexGrip, a prominent academic soft GPGPU.

Key results include:

  • Clock Frequency: 771 MHz on Intel Agilex, limited only by the hardened DSP blocks.
  • Throughput: The eGPU outperformed FlexGrip by an average factor of 31x across benchmarks. For a 32x32 Matrix-Matrix Multiply, the eGPU-DP completed the task in 144.7 µs, compared to 21,400 µs for FlexGrip.
  • Efficiency: When normalized for resource utilization, the eGPU provides an order of magnitude increase in performance for parallel workloads compared to standard soft RISC processors.

Conclusion and Future Work

The eGPU represents a significant leap in soft processor performance, proving that optimized soft logic can match the speed of hardened ASIC-style blocks. While currently limited by the lack of a high-level compiler and the requirement for manual hazard management, the architecture provides a powerful foundation for future FPGA-based acceleration. Future work will focus on developing a compiler for high-level languages (e.g., OpenCL) and addressing memory bandwidth bottlenecks for data-intensive algorithms like large-scale FFTs.

Summary updated

BibTeX
@inproceedings{langhammer2024statically,
  author = {Martin Langhammer and George A. Constantinides},
  title = {{A Statically and Dynamically Scalable Soft GPGPU}},
  booktitle = {FPGA},
  year = {2024},
  doi = {10.1145/3626202.3637567},
}
Figure