Accelerating Graph Analytics on a Reconfigurable Architecture with a Data-Indirect Prefetcher

Yichen Yang, Jingtao Li, Nishil Talati, Subhankar Pal, Siying Feng, Chaitali Chakrabarti, Trevor N. Mudge, Ronald G. DreslinskiarXiv 2023 · DOI

Abstract

Graph analytics workloads exhibit irregular memory access patterns that challenge traditional hardware. While Manycore Reconfigurable Architectures (MRAs) offer power efficiency, their small caches and complex shared memory modes often render standard prefetchers ineffective. This paper presents an adaptation of the Prodigy data-indirect prefetcher for the Transmuter MRA. By co-designing the prefetcher logic with a redesigned cache hierarchy—including a fused PFHR array and a handshake protocol for shared cache modes—the proposed system achieves a 1.27× average speedup and a 40% reduction in L1 cache misses across diverse graph workloads with minimal energy overhead.

Introduction

Graph analytics, such as PageRank or social network analysis, are notoriously difficult for modern hardware due to "irregular" memory access patterns. Instead of reading data sequentially, these algorithms jump through memory based on graph connectivity. Traditional CPUs use data prefetchers to mitigate latency, but these often fail when ported to Manycore Reconfigurable Architectures (MRAs).

MRAs prioritize efficiency and low power, typically utilizing much smaller caches than standard CPUs. A naïve port of a CPU prefetcher to an MRA often causes "cache pollution," where prefetched data evicts useful information. Furthermore, MRAs often employ complex shared cache modes that standard prefetchers are not designed to navigate. This work addresses these challenges through a synergistic redesign of the prefetcher and the MRA's cache hierarchy.

Architectural Integration and Methods

The authors adapted Prodigy, a state-of-the-art prefetcher that uses a "Data Indirection Graph" (DIG) to understand algorithmic memory patterns, for the Transmuter architecture. Key modifications include:

  • Fused PFHR Array: Individual per-core status registers were replaced with a "fused" array. This allows the prefetcher to support Transmuter’s ability to switch between private and shared cache modes at run-time.
  • Prefetch Handshake Protocol: In shared cache modes, data is distributed across banks using "cache coloring." A new handshake protocol ensures the prefetcher directs requests to the correct bank, preventing data misplacement.
  • Cache Hierarchy Overhaul: To accommodate prefetched data, the L1 cache was increased from 4kB to 16kB per bank. Additionally, the number of L2 banks per tile was increased from 1 to 4 to alleviate traffic congestion caused by aggressive prefetching.
Overview of the Transmuter cluster and integrated prefetcher engine architecture.

Performance Evaluation

The system was evaluated using the gem5 simulator across five major graph algorithms: PageRank (PR), PageRank-Nibble (PRN), Breadth-First Search (BFS), Single-Source Shortest Path (SSSP), and Collaborative Filtering (CF). The evaluation utilized a mix of real-world road, social, and web networks, alongside synthetic Kronecker and uniform-random graphs.

Dataset characteristics and performance results showing L1 miss reduction and speedup across various graph workloads.

The results demonstrate significant improvements:

  • Speedup: The system achieved an average 1.27× speedup over the baseline Transmuter, peaking at 2.72× for SSSP on road networks.
  • Efficiency: The architecture proved 4.6× faster than a high-end Intel i7-6700K CPU running the standard MKL library.
  • Cache Performance: L1 cache miss rates were reduced by 40% on average.
  • Overhead: The prefetcher logic is lean, adding only 3.42% to total system energy consumption.

Discussion and Conclusion

A key insight from this work is that prefetchers and cache architectures must be co-designed in resource-constrained MRAs; simply adding a prefetcher to the existing Transmuter architecture yielded only a 3% speedup. The study also found that shared L1 caches outperform private ones for graph workloads by better exploiting temporal locality.

While highly effective for sparse, uniform graphs like road networks—where the prefetcher can run far ahead of execution—the system is less effective on dense, non-uniform graphs. In such cases, "hub" nodes can trigger data floods that evict useful prefetched information. Future work will focus on creating more generic prefetcher templates for diverse reconfigurable manycore systems and exploring optimizations for high-density graph structures.

Summary updated

BibTeX
@misc{yang2023accelerating,
  author = {Yichen Yang and Jingtao Li and Nishil Talati and Subhankar Pal and Siying Feng and Chaitali Chakrabarti and Trevor N. Mudge and Ronald G. Dreslinski},
  title = {{Accelerating Graph Analytics on a Reconfigurable Architecture with a Data-Indirect Prefetcher}},
  year = {2023},
  eprint = {2301.12312},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.12312},
}
Figure