Computing Treewidth on the GPU

Tom C. van der Zanden, Hans L. Bodlaender
Department of Computer Science, Utrecht University, Utrecht, The Netherlands
arXiv:1709.09990 [cs.DC], (28 Sep 2017)


   title={Computing Treewidth on the GPU},

   author={Zanden, Tom C. van der and Bodlaender, Hans L.},






We present a parallel algorithm for computing the treewidth of a graph on a GPU. We implement this algorithm in OpenCL, and experimentally evaluate its performance. Our algorithm is based on an O*(2^n)-time algorithm that explores the elimination orderings of the graph using a Held-Karp like dynamic programming approach. We use Bloom filters to detect duplicate solutions. GPU programming presents unique challenges and constraints, such as constraints on the use of memory and the need to limit branch divergence. We experiment with various optimizations to see if it is possible to work around these issues. We achieve a very large speed up (up to 77x) compared to running the same algorithm on the CPU.
No votes yet.
Please wait...

* * *

* * *

HGPU group © 2010-2017 hgpu.org

All rights belong to the respective authors

Contact us: