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

性能驱动的并行广度优先搜索优化

Performance-Driven Optimization of Parallel Breadth-First Search

Marati Bhaskar, Raghavendra Kanakagiri

AI总结:

本文针对多核系统并行BFS的不规则内存访问等问题,提出混合遍历、位图已访问集合和非原子距离更新等优化策略,在Intel和AMD平台上对小直径图实现3-10倍加速,但大直径图表现复杂。

摘要:

广度优先搜索(BFS)是一种基础的图算法,由于不规则的内存访问模式、负载不平衡和同步开销,其并行实现面临重大挑战。本文针对多核系统上的并行BFS引入了一组优化策略,包括混合遍历、基于位图的已访问集合以及一种新颖的非原子距离更新机制。我们在两种不同的架构上——一个24核的Intel Xeon平台和一个128核的AMD EPYC系统——使用一组多样化的合成图和真实世界图评估了这些优化。结果表明,优化的有效性因图特征和硬件架构而异。对于小直径图,与传统的并行BFS实现相比,我们的混合BFS实现在Intel平台上实现了3-8倍的加速,在AMD系统上实现了3-10倍的加速。然而,大直径图的性能更为复杂,部分优化在不同平台上表现出不同的性能,在某些情况下甚至出现性能下降。

英文摘要:

Breadth-first search (BFS) is a fundamental graph algorithm that presents significant challenges for parallel implementation due to irregular memory access patterns, load imbalance and synchronization overhead. In this paper, we introduce a set of optimization strategies for parallel BFS on multicore systems, including hybrid traversal, bitmap-based visited set, and a novel non-atomic distance update mechanism. We evaluate these optimizations across two different architectures - a 24-core Intel Xeon platform and a 128-core AMD EPYC system - using a diverse set of synthetic and real-world graphs. Our results demonstrate that the effectiveness of optimizations varies significantly based on graph characteristics and hardware architecture. For small-diameter graphs, our hybrid BFS implementation achieves speedups of 3-8x on the Intel platform and $3-10\times$ on the AMD system compared to a conventional parallel BFS implementation. However, the performance of large-diameter graphs is more nuanced, with some of the optimizations showing varied performance across platforms including performance degradation in some cases.

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

↑