SIMD-X: Programming and Processing of Graph Algorithms on GPUs

Hang Liu, H. Howie Huang

TL;DR

This paper introduces SIMD-X, a novel framework for programming and processing graph algorithms on GPUs. SIMD-X offers a simplified programming model (ACC) and employs intelligent runtime optimizations like JIT task management and push-pull kernel fusion to achieve significant speedups over existing GPU graph processing systems.

What Problem Does This Paper Address?

Modern GPUs excel at data-level parallelism, making them ideal for applications that follow a Single Instruction, Multiple Data (SIMD) model. However, many emerging applications, particularly graph algorithms, exhibit irregular memory access patterns and control flow. This irregularity prevents them from fully leveraging GPU's SIMD capabilities, leading to underutilization and poor performance. Existing frameworks often require deep GPU architecture knowledge or struggle with workload imbalance and synchronization overhead, hindering efficient graph processing on GPUs.

Methods

SIMD-X tackles these challenges with a three-pronged approach:

  • Active-Compute-Combine (ACC) Programming Model: This model simplifies graph algorithm programming by abstracting away low-level GPU details. Programmers define three functions: Active (determines if a vertex needs processing), Compute (defines edge computation), and Combine (merges updates). This approach aims for ease of programming while enabling system-level optimizations.
  • Just-In-Time (JIT) Task Management: SIMD-X employs a two-step task management strategy. It first classifies tasks into "small," "medium," and "large" worklists. Then, it uses a JIT controller that adaptively switches between two filters:
  • Online Filter: Efficient for small numbers of active vertices, but can suffer from overflow.
  • Ballot Filter: Handles overflow by using warp-level ballot operations for more robust task list generation, though it can incur overhead with few active vertices. This adaptive approach balances parallelism and memory consumption.

  • Push-Pull Based Kernel Fusion: To reduce kernel invocation overhead and global memory traffic, SIMD-X fuses kernels. Unlike previous methods that fused kernels across global barriers (risking deadlocks), SIMD-X fuses kernels around the "push" and "pull" stages common in graph algorithms. This strategy minimizes register consumption, allowing for higher thread occupancy and avoiding deadlocks.

Datasets

The paper evaluates SIMD-X on a variety of graph datasets, categorized as:

  • Social Networks: Facebook (FB), LiveJournal (LJ), Orkut (OR), Pokec (PK), Twitter (TW)
  • Roadmaps: Europe-osm (ER), RoadCA-net (RC)
  • Web Graphs: UK-2002 (UK)
  • Synthetic Graphs: Kron24 (KR), Random (RD), R-MAT (RM)

These datasets represent a range of sizes, diameters, and degree distributions, allowing for comprehensive evaluation. No new benchmarks were introduced; existing graph generation tools were used.

Key Insights and Ideas

  • Decoupling Programming and Processing: SIMD-X's core innovation lies in separating the programmer's view (simple ACC model) from the system's execution (complex optimizations). This allows for ease of use without sacrificing performance.
  • Adaptive Task Management is Crucial: The JIT control that dynamically switches between online and ballot filters is key to handling varying workloads efficiently. This adaptive strategy is more effective than static filtering methods.
  • Push-Pull Fusion Avoids Deadlocks and Optimizes Resources: By fusing kernels around the natural push/pull phases of graph algorithms, SIMD-X achieves significant performance gains without the deadlock issues seen in prior global barrier fusion techniques. This also leads to better register utilization.
  • Irregularity is the Bottleneck: The paper strongly emphasizes that irregular memory access and control flow are the primary challenges for GPU graph processing, and SIMD-X's design directly addresses these.

Key Results

  • Significant Speedups: SIMD-X achieves substantial speedups across various graph algorithms and datasets, outperforming state-of-the-art systems like Gunrock, Galois, CuSha, and Ligra.
  • On average, SIMD-X provides 3x, 6x, 24x, and 3x speedup over Gunrock, Galois, CuSha, and Ligra, respectively.
  • Specific examples include 16x average speedup from JIT task management and up to 80% performance benefit from push-pull kernel fusion.
  • Reduced Programming Effort: Algorithms can be implemented in tens of lines of code using the ACC model.
  • Improved Resource Utilization: Push-pull kernel fusion reduces register consumption by half, doubling configurable thread count and leading to performance improvements.
  • Robustness: SIMD-X handles large graphs and high-diameter graphs where other systems fail due to memory limitations or inability to converge.

Limitations and Future Work

  • JIT Overhead: While minimal, there is a slight slowdown (average 0.02%) due to the JIT task management's online filter overhead.
  • Threshold Tuning: The performance of the JIT controller is sensitive to the overflow threshold for the online filter, requiring careful selection (64 was used in the paper).
  • Future Work: The paper suggests that SIMD-X's ACC model and optimization techniques can be applied to other domains beyond graph processing, such as deep learning. Further exploration of adaptive strategies and more complex graph algorithms is also implied.

Summary updated

Abstract

With high computation power and memory bandwidth, graphics processing units (GPUs) lend themselves to accelerate data-intensive analytics, especially when such applications fit the single instruction multiple data (SIMD) model. However, graph algorithms such as breadth-first search and k-core, often fail to take full advantage of GPUs, due to irregularity in memory access and control flow. To address this challenge, we have developed SIMD-X, for programming and processing of single instruction multiple, complex, data on GPUs. Specifically, the new Active-Compute-Combine (ACC) model not only provides ease of programming to programmers, but more importantly creates opportunities for system-level optimizations. To this end, SIMD-X utilizes just-in-time task management which filters out inactive vertices at runtime and intelligently maps various tasks to different amount of GPU cores in pursuit of workload balancing. In addition, SIMD-X leverages push-pull based kernel fusion that, with the help of a new deadlock-free global barrier, reduces a large number of computation kernels to very few. Using SIMD-X, a user can program a graph algorithm in tens of lines of code, while achieving 3?, 6?, 24?, 3? speedup over Gunrock, Galois, CuSha, and Ligra, respectively.
BibTeX
@inproceedings{liu2019simd,
  author = {Hang Liu and H. Howie Huang},
  title = {{SIMD-X: Programming and Processing of Graph Algorithms on GPUs}},
  booktitle = {USENIX ATC},
  year = {2019},
  url = {https://openreview.net/forum?id=kxY1VRaGx0},
}
Figure