TL;DR
Atos is a new task-parallel GPU scheduling framework designed to tackle "irregular" computations, such as graph processing, where traditional methods often leave the GPU underutilized. By relaxing strict synchronization barriers and allowing flexible, fine-grained task scheduling, Atos achieves significant performance gains—up to a 12.8x speedup—over state-of-the-art bulk-synchronous implementations.
What Problem Does This Paper Address?
Most GPU programming follows the Bulk Synchronous Parallel (BSP) model: the GPU performs a massive batch of work, hits a global synchronization barrier, and then starts the next batch. This works beautifully for regular data like matrices, but it falls apart for "irregular" workloads like graph algorithms (e.g., Breadth-First Search or PageRank).
The authors identify three main "BSP killers":
- The Small Frontier Problem: In many algorithms, the amount of work per step fluctuates. If a step has very little work, the overhead of launching a GPU kernel dominates the actual computation time, and the GPU sits mostly idle.
- Load Imbalance: Irregular data makes it hard to partition work evenly. Some threads finish instantly while others struggle with massive workloads, leaving hardware underused.
- Loss of Concurrency: Global barriers prevent the GPU from starting work on the next step even if the data is ready, simply because the current "bulk" step hasn't finished everywhere.
Methods
Atos moves away from the BSP model toward a task-parallel approach. Instead of launching one giant kernel per iteration, Atos uses a persistent scheduling framework where "workers" pull tasks from a shared queue. Key innovations include:
- Flexible Worker Granularity: Unlike previous frameworks that treat the whole GPU as one worker, Atos allows users to define workers as individual threads, warps (32 threads), or Cooperative Thread Arrays (CTAs/blocks). This allows for a hybrid approach: task-parallelism between workers and data-parallelism within a worker.
- Relaxed Barriers & Speculation: Atos allows tasks to run asynchronously across what would traditionally be iteration boundaries. For algorithms like BFS, this might mean visiting a node "out of order." While this can lead to "overwork" (re-processing a node), the authors show that the massive increase in concurrency usually outweighs the cost of the extra work.
- Persistent Kernels: Atos can launch a single kernel that stays resident on the GPU, continuously pulling from a queue. This eliminates the repeated overhead of kernel launches, which is critical for high-diameter graphs (like road networks) where frontiers are often small.
Datasets
The researchers evaluated Atos using five diverse graph datasets, categorized into two types:
- Scale-free graphs (Power-law):
soc-LiveJournal1,hollywood_2009, andindochina_2004. These have a few very high-degree nodes and low diameters. - Mesh-like graphs:
road_usaandroadNet_ca. These have very high diameters and more uniform, low-degree nodes, which typically trigger the "small frontier" problem in BSP models.
Key Insights and Ideas
- The Concurrency-Overwork Tradeoff: The most striking insight is that "wasting" work can be faster. By relaxing barriers, Atos might do 3.5x more work than a BSP implementation, but because it keeps the GPU's thousands of cores 10x busier, it still finishes much sooner.
- Hybrid Load Balancing: The authors found that combining task-parallel load balancing (via the shared queue) with data-parallel techniques (like load-balancing search) inside a CTA-sized worker provides the best performance for complex irregular workloads.
- Semantic Sensitivity: In graph coloring, the order of tasks matters immensely. The authors discovered that processing vertices in their original ID order caused massive conflicts. Simply permuting the vertex IDs randomly reduced "overwork" from 37x down to less than 1.5x.
Key Results
Atos was compared against Gunrock, a state-of-the-art BSP-based GPU graph library.
- Breadth-First Search (BFS): Achieved a geomean speedup of 3.44x, with a peak speedup of 12.8x on the
road_usadataset. - PageRank: Achieved a geomean speedup of 2.1x. Interestingly, PageRank is naturally unordered, so relaxing barriers resulted in less total work than the BSP version by allowing faster rank propagation.
- Graph Coloring: Achieved a geomean speedup of 2.77x, peaking at 9.08x.
- Persistent vs. Discrete: For mesh-like graphs with many small iterations, the persistent kernel strategy was the clear winner, proving that kernel launch overhead is a major bottleneck in traditional designs.
Limitations and Future Work
- Contention at the Queue: While the single shared queue was fast enough for the NVIDIA V100 used in the study, the authors acknowledge that as GPU core counts continue to grow, the queue could become a bottleneck, potentially requiring a distributed queue design.
- Manual Tuning: Users still need to experiment to find the optimal "worker size" and "fetch size" for their specific application, though the paper provides a set of heuristic guidelines.
- Overwork in Coloring: In graph coloring, the cost of misspeculation (conflicts) is high. The framework currently relies on the user to mitigate this (e.g., through ID permutation), suggesting a need for more automated conflict-reduction strategies.
Summary updated