arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.04934cs.DCcs.DS
收藏

基于更快速可达性的并行强连通性

Parallel Strong Connectivity Based on Faster Reachability

Letong Wang, Xiaojun Dong, Yan Gu, Yihan Sun

AI总结:

针对大直径图上并行SCC慢的问题,提出基于垂直粒度控制(VGC)和并行哈希袋的并行可达性算法,实现高效SCC,在18个图上平均比GBBS快6.0倍。

摘要:

计算强连通分量(SCC)是图处理中的一个基本问题。随着当今现实世界图规模越来越大,并行SCC变得越来越重要。在并行环境下,SCC具有挑战性,尤其是在大直径图上尤为困难。许多现有的并行SCC实现,在大直径图上甚至可能比Tarjan的顺序算法更慢。为了应对这一挑战,我们提出了一种使用新的并行可达性算法的高效并行SCC实现。我们的解决方案基于一种称为垂直粒度控制(VGC)的新颖思想。它打破了同步屏障,以增加并行性并隐藏调度开销。为了在我们的SCC算法中使用VGC,我们还设计了一种高效的数据结构,称为并行哈希袋。它使用并行动态调整大小来避免维护前沿(每轮处理的顶点)时的冗余工作。我们使用我们新的并行可达性算法实现了Blelloch等人(J. ACM, 2020)的并行SCC算法。我们将我们的实现与最先进的系统(包括GBBS、iSpan、Multi-step以及我们高度优化的Tarjan顺序算法)在18个图上进行了比较,这些图包括社交图、网络图、k-NN图和格图。在一台具有96个核心的机器上,我们的实现在18个图中的16个上是最快的。在所有图上的平均(几何平均值)中,我们的SCC比之前最好的并行代码(GBBS)快6.0倍,比Tarjan的顺序算法快12.8倍,比每个图上最好的现有实现快2.7倍。我们相信我们的技术具有独立的价值。我们还将我们的并行哈希袋和VGC方案应用于其他图问题,包括连通性和最小元素列表(LE-lists)。

英文摘要:

Computing strongly connected components (SCC) is a fundamental problems in graph processing. As today's real-world graphs are getting larger and larger, parallel SCC is increasingly important. SCC is challenging in the parallel setting and is particularly hard on large-diameter graphs. Many existing parallel SCC implementations can be even slower than Tarjan's sequential algorithm on large-diameter graphs. To tackle this challenge, we propose an efficient parallel SCC implementation using a new parallel reachability algorithm. Our solution is based on a novel idea referred to as vertical granularity control (VGC). It breaks the synchronization barriers to increase parallelism and hide scheduling overhead. To use VGC in our SCC algorithm, we also design an efficient data structure called the \emph{parallel hash bag}. It uses parallel dynamic resizing to avoid redundant work in maintaining frontiers (vertices processed in a round). We implement the parallel SCC algorithm by Blelloch et al.\ (J.\ ACM, 2020) using our new parallel reachability algorithm. We compare our implementation to the state-of-the-art systems, including GBBS, iSpan, Multi-step, and our highly optimized Tarjan's (sequential) algorithm, on 18 graphs, including social, web, $k$-NN, and lattice graphs. On a machine with 96 cores, our implementation is the fastest on 16 out of 18 graphs. On average (geometric means) over all graphs, our SCC is 6.0$\times$ faster than the best previous parallel code (GBBS), 12.8$\times$ faster than Tarjan's sequential algorithms, and 2.7$\times$ faster than the \emph{best existing implementation on each graph}. We believe that our techniques are of independent interest. We also apply our parallel hash bag and VGC scheme to other graph problems, including connectivity and least-element lists (LE-lists).

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

↑