Data-Driven Versus Topology-driven Irregular Computations on GPUs
Authors:
- Rupesh NasreRNRupesh Nasre
- Martin BurtscherMBMartin Burtscher
- Keshav PingaliKPKeshav Pingali
- 1 May 2013
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- No. 15302075,p. 463-474
Abstract
Irregular algorithms are algorithms with complex main data structures such as directed and undirected graphs, trees, etc. A useful abstraction for many irregular algorithms is its operator formulation in which the algorithm is viewed as the iterated application of an operator to certain nodes, called active nodes, in the graph. Each operator application, called an activity, usually touches only a small part of the overall graph, so nonoverlapping activities can be performed in parallel. In topology-driven implementations, all nodes are assumed to be active so the operator is applied everywhere in the graph even if there is no work to do at some nodes. In contrast, in data-driven implementations the operator is applied only to nodes at which there might be work to do. Multicore implementations of irregular algorithms are usually data-driven because current multicores only support small numbers of threads and work-efficiency is important. Conversely, many irregular GPU implementations use a topology-driven approach because work inefficiency can be counterbalanced by the large number of GPU threads. In this paper, we study data-driven and topology-driven implementations of six important graph algorithms on GPUs. Our goal is to understand the tradeoffs between these implementations and how to optimize them. We find that data-driven versions are generally faster and scale better despite the cost of maintaining a worklist. However, topology-driven versions can be superior when certain algorithmic properties are exploited to optimize the implementation. These results led us to devise hybrid approaches that combine the two techniques and outperform both of them.Keywords
This publication has 19 references indexed in Scilit:
- Morph algorithms on GPUs2013
- Dynamically managed data for CPU-GPU architectures2012
- Scalable GPU graph traversal2012
- A GPU implementation of inclusion-based points-to analysis2012
- Synthesizing concurrent schedulers for irregular algorithms2011
- Accelerating CUDA graph algorithms at maximum warp2011
- Accelerating Large Graph Algorithms on the GPU Using CUDA2008
- Optimistic parallelism requires abstractionsACM SIGPLAN Notices, 2007
- Focused Community Discovery2006
- Distributed discrete-event simulationACM Computing Surveys, 1986