Contiguous Graph Partitioning For Optimal Total Or Bottleneck Communication

Willow Ahrens
7/31/2020
cs.DS

Official code: willow-ahrens/ChainPartitioners.jl (2 stars, Julia, MIT, last commit 2023-11-15).

Abstract

Graph partitioning schedules parallel calculations like sparse matrix-vector multiply (SpMV). We consider contiguous partitions, where the $m$ rows (or columns) of a sparse matrix with $N$ nonzeros are split into $K$ parts without reordering.

Show full abstract

We propose the first near-linear time algorithms for several graph partitioning problems in the contiguous regime. Traditional objectives such as the simple edge cut, hyperedge cut, or hypergraph connectivity minimize the total cost of all parts under a balance constraint. Our total partitioners use $O(Km + N)$ space. They run in $O((Km\log(m) + N)\log(N))$ time, a significant improvement over prior $O(K(m^2 + N))$ time algorithms due to Kernighan and Grandjean et. al. Bottleneck partitioning minimizes the maximum cost of any part. We propose a new bottleneck cost which reflects the sum of communication and computation on each part. Our bottleneck partitioners use linear space. The exact algorithm runs in linear time when $K^2$ is $O(N^C)$ for $C < 1$. Our $(1 + ε)$-approximate algorithm runs in linear time when $K\log(c_{high}/(c_{low}ε))$ is $O(N^C)$ for $C < 1$, where $c_{high}$ and $c_{low}$ are upper and lower bounds on the optimal cost. We also propose a simpler $(1 + ε)$-approximate algorithm which runs in a factor of $\log(c_{high}/(c_{low}ε))$ from linear time. We empirically demonstrate that our algorithms efficiently produce high-quality contiguous partitions on a test suite of 42 test matrices. When $K = 8$, our hypergraph connectivity partitioner achieved a speedup of $53\times$ (mean $15.1\times$) over prior algorithms. The mean runtime of our bottleneck partitioner was 5.15 SpMVs.

View on arXivView PDF

Code Implementations(1)

MIT

Contiguous sparse matrix partitioners

21Julia, ShellNov 6, 20203 years agoMIT

Similar Papers

Cite this paper

@article{ahrens2020contiguous,
  title  = {Contiguous Graph Partitioning For Optimal Total Or Bottleneck Communication},
  author = {Willow Ahrens},
  year   = {2020},
  eprint = {2007.16192},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2007.16192}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2007.16192.svg)](https://codeofpaper.com/paper/2007.16192)

Discussion