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

贪婪是好的:多核架构上的二部图部分着色的乐观算法

Greed is Good: Optimistic Algorithms for Bipartite-Graph Partial Coloring on Multicore Architectures

Mustafa Kemal Taş, Kamer Kaya, Erik Saule

摘要:

在并行计算中,有效的图着色产生着色任务、数据点等的无锁处理,而不需要昂贵的同步机制。然而,着色不是免费的,开销可能很大。具体地,对于在科学计算和数值优化领域内具有各种用例的二分图部分着色(BGPC)和距离2图着色(D2 GC)问题,对于许多现实生活中的图,着色开销可以是单个线程的分钟数量级。在这项工作中,我们提出了共享内存架构上的偶图部分着色的并行算法。与现有的共享内存BGPC算法相比,所提出的算法采用更贪婪和更乐观的技术,产生更好的并行着色性能。特别是,在16个核心上,所提出的算法的执行速度比ColPack库中的对应算法快4倍以上,据我们所知,ColPack库是多核架构中唯一公开可用的着色库。除了BGPC,所提出的技术来设计并行的距离-2图着色算法和类似的性能改善已被观察到。最后,我们提出了两个无成本的平衡算法BGPC,可以减少偏度和不平衡的颜色集的基数(几乎)免费。该算法也可以用于D2 GC问题,一般来说,它们可能会产生更好的基于颜色的并行化性能,特别是在众核架构上。

英文摘要:

In parallel computing, a valid graph coloring yields a lock-free processing of the colored tasks, data points, etc., without expensive synchronization mechanisms. However, coloring is not free and the overhead can be significant. In particular, for the bipartite-graph partial coloring (BGPC) and distance-2 graph coloring (D2GC) problems, which have various use-cases within the scientific computing and numerical optimization domains, the coloring overhead can be in the order of minutes with a single thread for many real-life graphs. In this work, we propose parallel algorithms for bipartite-graph partial coloring on shared-memory architectures. Compared to the existing shared-memory BGPC algorithms, the proposed ones employ greedier and more optimistic techniques that yield a better parallel coloring performance. In particular, on 16 cores, the proposed algorithms perform more than 4x faster than their counterparts in the ColPack library which is, to the best of our knowledge, the only publicly-available coloring library for multicore architectures. In addition to BGPC, the proposed techniques are employed to devise parallel distance-2 graph coloring algorithms and similar performance improvements have been observed. Finally, we propose two costless balancing heuristics for BGPC that can reduce the skewness and imbalance on the cardinality of color sets (almost) for free. The heuristics can also be used for the D2GC problem and in general, they will probably yield a better color-based parallelization performance especially on many-core architectures.

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

↑