GraVF-M: Graph Processing System Generation for Multi-FPGA Platforms

Nina Engelhardt, Hayden Kwok-Hay So · DOI

Introduction

Graph processing is a foundational component of modern data analysis, powering everything from social network recommendation engines to bioinformatics and fraud detection. However, these workloads are notoriously difficult for traditional CPU and GPU architectures. Graphs are inherently "irregular": they exhibit low computational density and poor memory locality, as traversing an edge often requires jumping to a random location in memory.

Field-Programmable Gate Arrays (FPGAs) offer a compelling alternative due to their highly customizable on-chip memory (BRAM) and parallel processing capabilities. While a single FPGA can outperform general-purpose processors on specific graph tasks, the limited on-chip memory of a single device eventually necessitates scaling to multi-FPGA systems. Historically, this scaling has been hindered by a massive bottleneck: interconnect bandwidth. GraVF-M addresses this challenge by introducing a novel communication strategy that significantly reduces network traffic, enabling high-performance distributed graph analysis.

Overcoming the Interconnect Bottleneck

In a standard distributed graph processing setup, every edge that spans two different FPGAs requires a discrete message to be sent across the network. Because real-world graphs are highly interconnected, the resulting network traffic quickly overwhelms the physical interconnect, leaving the FPGAs idle while they wait for data.

GraVF-M (an evolution of the original GraVF framework) solves this by fundamentally reorganizing the communication pattern using a synchronous "Gather-Apply-Scatter" (GAS) programming model with a critical architectural twist.

The "Scatter" Shift

In traditional distributed systems, the "Scatter" phase occurs at the source FPGA, which sends an update for every outgoing edge. GraVF-M moves the Scatter phase to the receiving FPGA. Instead of sending $N$ messages (one for each edge), the source FPGA sends a single "update" to the destination FPGA. The destination then locally generates the messages for all the edges it hosts. This shift reduces network traffic by a factor approximately equal to the graph's average degree, effectively trading a small amount of local computation for a massive reduction in network load.

Floating Barrier Synchronization

To mitigate the "straggler" problem—where the entire system is slowed down by the single slowest processing element (PE)—GraVF-M implements a "floating barrier." This mechanism allows different PEs to work on different iterations (supersteps) of an algorithm simultaneously, provided that data dependencies are respected. This increases hardware utilization and prevents idle time during synchronization phases.

Automated System Generation

GraVF-M is designed as a framework that automates the creation of optimized hardware. Users provide a high-level description of their graph algorithm using Python (via Migen) or Verilog. The framework then automatically generates the Register-Transfer Level (RTL) logic, including the necessary network interfaces, memory controllers, and processing elements tailored for the multi-FPGA target platform.

Experimental Methodology

The researchers evaluated GraVF-M using a variety of workloads and graph types:

  • Algorithms: Breadth-First Search (BFS), Weakly Connected Components (WCC), and PageRank (PR).
  • Datasets: Synthetic Uniform graphs (even edge distribution), RMAT graphs (scale-free graphs mimicking social networks), and a real-world subgraph of the Pennsylvania road network from the SNAP database.
  • Hardware: A 4-FPGA cluster was used to measure throughput and scaling efficiency.

Performance and Results

The evaluation demonstrated that GraVF-M successfully breaks the bandwidth barrier that plagues distributed graph processing:

  • Peak Throughput: The system achieved a peak performance of 5.8 GTEPS (billions of edges per second) on the 4-FPGA cluster.
  • Scaling Efficiency: GraVF-M delivered a 2.2× to 2.8× speedup when scaling from one to four FPGAs, proving that the communication optimizations allow for effective parallelization.
  • Comparison to State-of-the-Art: When compared against ForeGraph, a prominent simulated multi-FPGA framework, GraVF-M performed 2.5× to 3.8× better across the tested algorithms.
  • Bottleneck Shift: In PageRank tests—which are more computationally intensive—the system reached the computational limits of the PEs before hitting network limits. This confirms that the framework successfully moved the bottleneck away from the interconnect.

Conclusion and Future Work

GraVF-M represents a significant step forward in distributed graph processing. By treating updates as broadcasts to FPGAs rather than point-to-point messages for every edge, the system's performance scales with the number of vertices rather than the number of edges.

Despite these gains, some limitations remain. The current implementation requires the entire graph to fit within the combined memory of the FPGAs, and the core optimization is less effective on extremely sparse graphs (like road networks) where the average degree is low. Future research will focus on supporting "partitioning in time" to handle graphs larger than available memory and exploring more complex partitioning heuristics to further improve load balancing across larger FPGA clusters.

Summary updated

BibTeX
@article{engelhardt2019gravf,
  author = {Nina Engelhardt and Hayden Kwok-Hay So},
  title = {{GraVF-M: Graph Processing System Generation for Multi-FPGA Platforms}},
  journal = {ACM Trans. Reconfigurable Technol. Syst.},
  year = {2019},
  doi = {10.1145/3357596},
}
Figure