Skip to main content
QUICK REVIEW

[Paper Review] Parallel Breadth-First Search on Distributed Memory Systems

Aydın Buluç, Kamesh Madduri|arXiv (Cornell University)|Apr 22, 2011
Graph Theory and AlgorithmsComputer Science27 references11 citations
TL;DR

This paper presents two highly optimized hybrid-parallel BFS algorithms for distributed-memory systems: a level-synchronous vertex-partitioned approach and a novel two-dimensional sparse matrix-partitioning method. The latter reduces communication overhead by up to 3.5× and achieves 17.8 billion edge visits per second on a 40,000-core system, setting new performance records for BFS on large-scale graphs with skewed degree distributions.

ABSTRACT

Data-intensive, graph-based computations are pervasive in several scientific applications, and are known to to be quite challenging to implement on distributed memory systems. In this work, we explore the design space of parallel algorithms for Breadth-First Search (BFS), a key subroutine in several graph algorithms. We present two highly-tuned parallel approaches for BFS on large parallel systems: a level-synchronous strategy that relies on a simple vertex-based partitioning of the graph, and a two-dimensional sparse matrix-partitioning-based approach that mitigates parallel communication overhead. For both approaches, we also present hybrid versions with intra-node multithreading. Our novel hybrid two-dimensional algorithm reduces communication times by up to a factor of 3.5, relative to a common vertex based approach. Our experimental study identifies execution regimes in which these approaches will be competitive, and we demonstrate extremely high performance on leading distributed-memory parallel systems. For instance, for a 40,000-core parallel execution on Hopper, an AMD Magny-Cours based system, we achieve a BFS performance rate of 17.8 billion edge visits per second on an undirected graph of 4.3 billion vertices and 68.7 billion edges with skewed degree distribution.

Motivation & Objective

  • To address the performance challenges of parallel BFS on distributed-memory systems with irregular memory access patterns.
  • To explore algorithmic trade-offs between vertex-based and matrix-based partitioning strategies for large-scale graphs.
  • To minimize communication overhead and maximize scalability in high-concurrency environments.
  • To achieve state-of-the-art performance on modern supercomputers using hybrid parallelism (MPI + multithreading).
  • To provide a high-performance, production-ready implementation that outperforms existing frameworks like PBGL.

Proposed method

  • Uses a level-synchronous BFS strategy with one-dimensional vertex-based partitioning across processors.
  • Employs a two-dimensional sparse matrix partitioning scheme to reduce inter-processor communication by co-locating related graph data.
  • Integrates intra-node multithreading to improve data locality and hide memory latency on multicore nodes.
  • Applies random vertex permutation to balance load and reduce communication skew in the two-dimensional approach.
  • Leverages MPI for inter-node communication and optimizes collective operations (Alltoall, Allgather) for high concurrency.
  • Uses sparse matrix-vector multiplication (SpMV) abstractions to express BFS iterations as linear algebra operations.

Experimental results

Research questions

  • RQ1Can a two-dimensional sparse matrix partitioning strategy significantly reduce communication volume in distributed BFS?
  • RQ2How does hybrid multithreading (MPI + OpenMP) improve performance on multicore nodes in large-scale BFS?
  • RQ3What are the performance bottlenecks in existing parallel BFS frameworks like PBGL on large-scale systems?
  • RQ4To what extent can communication reduction improve scalability at high process counts?
  • RQ5Can the performance of BFS be significantly improved over prior work on modern distributed-memory architectures?

Key findings

  • The two-dimensional partitioning-based algorithm reduces communication time by up to a factor of 3.5 compared to a standard vertex-based approach.
  • On a 40,000-core system (Hopper), the method achieves 17.8 billion edge visits per second on a 4.3 billion vertex, 68.7 billion edge graph with skewed degree distribution.
  • The implementation is up to 16× faster than PBGL on small-scale test cases (128–2048 cores) for R-MAT graphs.
  • The single-node multithreaded version outperforms prior high-performance implementations reported in the literature by up to 1.47× on standard test instances.
  • The performance advantage is sustained across multiple architectures, including AMD Magny-Cours (Hopper) and Intel Nehalem (Carver).
  • The results challenge the assumption that fine-grained communication is necessary for high performance, showing that coarsened communication via 2D partitioning can be more effective.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.