arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1912.01478cs.DC
收藏

一种基于GPU的混合图着色算法

A Hybrid Graph Coloring Algorithm for GPUs

Shanthanu S Rai, Rohit M P, Sreepathi Pai

摘要:

图算法主要分为拓扑驱动和数据驱动两大类。数据驱动的方法维护一个活动节点的工作列表,这些节点上的工作必须完成。拓扑驱动的方法扫描整个图以找到活动节点。杂交是一种优化技术,其中在每次迭代中,基于工作列表大小以拓扑驱动或数据驱动的方式进行计算。在混合实现中,需要在拓扑驱动和数据驱动方法之间切换。通常,工作列表仅在算法的数据驱动部分中维护,而在拓扑驱动部分中丢弃。我们提出了一个变种的杂交,其中一个工作列表是保持在整个算法的所有迭代,仍然显示它比这两个,拓扑驱动和数据驱动的方法更快。我们考虑一个图着色算法称为IPGC(迭代并行图着色),并实现了一个混合版本相同的图域特定的语言称为IrGL。我们在NVIDIA GPU上的一套10个大型图形上观察到2.13倍的IPGC数据驱动实现的平均加速。

英文摘要:

Graph algorithms mainly belong to two categories, topology-driven and data-driven. Data-driven approach maintains a worklist of active nodes, the nodes on which work has to be done. Topology-driven approach sweeps over the entire graph to find active nodes. Hybridization is an optimization technique where in each iteration, the computation is done in a topology-driven or data-driven manner based on worklist size. In hybrid implementations, there is a need to switch between topology-driven and data-driven approaches. Typically, a worklist is maintained just in the data-driven part of the algorithm and discarded in the topology-driven part. We propose a variant of hybridization, wherein a worklist is maintained throughout all iterations of the algorithm and still show it to be faster than both, topology-driven and data-driven approaches. We consider a graph coloring algorithm called IPGC (Iterative Parallel Graph Coloring) and implement a hybrid version for the same in a graph domain specific language called IrGL. We observe a mean speedup of 2.13x over a data-driven implementation of IPGC on a suite of 10 large graphs on a NVIDIA GPU.

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

↑