arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2204.10402cs.DC
收藏

基于GPU的并行顶点覆盖算法

Parallel Vertex Cover Algorithms on GPUs

Peter Yamout, Karim Barada, Adnan Jaljuli, Amer E. Mouawad, Izzat El Hajj

摘要:

在图中寻找小顶点覆盖在许多领域都有应用。该问题的两个常见公式包括:最小顶点覆盖,它找到图中最小的顶点覆盖,和参数化顶点覆盖,它找到大小小于或等于某个参数$k$的顶点覆盖。两种公式的算法都遍历搜索树,搜索树随着图的大小或$k$的值呈指数增长。由于多种原因,在GPU上对顶点覆盖搜索树的遍历进行并行化是具有挑战性的。首先,搜索树是一个狭窄的二叉树,这使得它很难提取足够的子树并行处理,以充分利用GPU的资源。其次,搜索树高度不平衡,这使得跨大量并行GPU工作器的负载均衡具有挑战性。第三,保持并行遍历许多子树所需的所有中间状态对GPU的存储器资源造成很大压力,并且可能成为并行性的限制因素。为了解决这些挑战,我们提出了一种方法来遍历顶点覆盖搜索树并行使用GPU,同时处理动态负载均衡。每个线程块使用本地堆栈遍历不同的子树,但是,我们也使用全局工作列表来平衡负载。块根据需要将其子树的分支贡献给全局工作列表,而完成其子树的块从全局工作列表中获得新的分支。我们使用度数组来表示中间图,这样表示在内存中是紧凑的,以避免限制并行性,但独立的,这是必要的负载均衡。我们的评估表明,与以前的工作相比,我们的混合使用本地堆栈和全局工作列表的方法大大提高了性能,减少了负载不平衡,特别是在困难的情况下的问题。

英文摘要:

Finding small vertex covers in a graph has applications in numerous domains. Two common formulations of the problem include: Minimum Vertex Cover, which finds the smallest vertex cover in a graph, and Parameterized Vertex Cover, which finds a vertex cover whose size is less than or equal to some parameter $k$. Algorithms for both formulations traverse a search tree, which grows exponentially with the size of the graph or the value of $k$. Parallelizing the traversal of the vertex cover search tree on GPUs is challenging for multiple reasons. First, the search tree is a narrow binary tree which makes it difficult to extract enough sub-trees to process in parallel to fully utilize the GPU's resources. Second, the search tree is highly imbalanced which makes load balancing across a massive number of parallel GPU workers challenging. Third, keeping around all the intermediate state needed to traverse many sub-trees in parallel puts high pressure on the GPU's memory resources and may act as a limiting factor to parallelism. To address these challenges, we propose an approach to traverse the vertex cover search tree in parallel using GPUs while handling dynamic load balancing. Each thread block traverses a different sub-tree using a local stack, however, we also use a global worklist to balance load. Blocks contribute branches of their sub-trees to the global worklist on an as-needed basis, while blocks that finish their sub-trees get new ones from the global worklist. We use degree arrays to represent intermediate graphs so that the representation is compact in memory to avoid limiting parallelism, but self-contained which is necessary for load balancing. Our evaluation shows that compared to prior work, our hybrid approach of using local stacks and a global worklist substantially improves performance and reduces load imbalance, especially on difficult instances of the problem.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑