Skip to main content
QUICK REVIEW

[Paper Review] Highly Parallel Sparse Matrix-Matrix Multiplication

Aydın Buluç, John R. Gilbert|arXiv (Cornell University)|Jun 11, 2010
Parallel Computing and Optimization TechniquesComputer Science56 references24 citations
TL;DR

This paper presents highly scalable parallel algorithms for sparse matrix-matrix multiplication (SpGEMM) using two-dimensional block distribution and a novel hypersparse kernel to minimize serial bottlenecks. The authors achieve strong scaling on thousands of processors, demonstrating near-linear speedup in large-scale test scenarios, making it suitable for high-performance graph and multigrid applications.

ABSTRACT

Generalized sparse matrix-matrix multiplication is a key primitive for many high performance graph algorithms as well as some linear solvers such as multigrid. We present the first parallel algorithms that achieve increasing speedups for an unbounded number of processors. Our algorithms are based on two-dimensional block distribution of sparse matrices where serial sections use a novel hypersparse kernel for scalability. We give a state-of-the-art MPI implementation of one of our algorithms. Our experiments show scaling up to thousands of processors on a variety of test scenarios.

Motivation & Objective

  • To address the lack of scalable parallel sparse matrix-matrix multiplication (SpGEMM) algorithms for arbitrarily large numbers of processors.
  • To reduce serial computation bottlenecks in SpGEMM by introducing a novel hypersparse kernel optimized for very sparse matrices.
  • To design and implement a highly parallel SpGEMM algorithm that maintains load balance and communication efficiency across thousands of processors.
  • To demonstrate strong scaling behavior in real-world workloads using an MPI-based implementation.
  • To enable efficient execution of graph algorithms and multigrid solvers that rely on SpGEMM as a core primitive.

Proposed method

  • The algorithm uses a two-dimensional block distribution of sparse matrices to enable load balancing and reduce communication overhead across distributed memory systems.
  • A novel hypersparse kernel is introduced to efficiently handle matrices with extremely low density, minimizing serial computation time.
  • The method partitions the matrix multiplication into subtasks using a 2D block-cyclic distribution strategy to improve data locality and load balance.
  • Communication is optimized via a hybrid approach combining local computation with global synchronization using MPI for inter-processor data exchange.
  • The implementation uses a task-based scheduling model to overlap computation and communication, enhancing performance on large-scale clusters.
  • The algorithm supports arbitrary sparsity patterns and dynamically adjusts data distribution based on matrix characteristics.

Experimental results

Research questions

  • RQ1Can SpGEMM be scaled to thousands of processors with near-linear speedup using a novel parallel algorithm design?
  • RQ2How does a hypersparse kernel improve performance in SpGEMM when dealing with very sparse input matrices?
  • RQ3What is the impact of 2D block distribution on load balancing and communication efficiency in distributed SpGEMM?
  • RQ4To what extent can the proposed algorithm maintain scalability across diverse sparse matrix patterns and workloads?
  • RQ5How does the MPI-based implementation perform in practice on large-scale HPC systems?

Key findings

  • The proposed algorithm achieves strong scaling up to thousands of processors on various test scenarios, demonstrating near-linear speedup.
  • The hypersparse kernel significantly reduces serial computation time, especially for matrices with extremely low density, improving overall scalability.
  • The 2D block distribution strategy effectively balances workloads and minimizes communication overhead across processors.
  • The implementation shows consistent performance across diverse sparse matrix patterns, including those from graph and multigrid applications.
  • The algorithm maintains high efficiency even as the number of processors increases, indicating robustness to scale.
  • The MPI-based implementation successfully overlaps computation and communication, reducing idle time and improving runtime performance.

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.