Task-Based Algorithm for Matrix Multiplication: A Step Towards Block-Sparse Tensor Computing

Justus A. Calvin, Edward F. Valeev
4/20/2015
16 citations
cs.DC

Official code: ValeevGroup/tiledarray (330 stars, C++, GPL-3.0, last commit 2026-11-12).

Abstract

Distributed-memory matrix multiplication (MM) is a key element of algorithms in many domains (machine learning, quantum physics). Conventional algorithms for dense MM rely on regular/uniform data decomposition to ensure load balance.

Show full abstract

These traits conflict with the irregular structure (block-sparse or rank-sparse within blocks) that is increasingly relevant for fast methods in quantum physics. To deal with such irregular data we present a new MM algorithm based on Scalable Universal Matrix Multiplication Algorithm (SUMMA). The novel features are: (1) multiple-issue scheduling of SUMMA iterations, and (2) fine-grained task-based formulation. The latter eliminates the need for explicit internodal synchronization; with multiple-iteration scheduling this allows load imbalance due to nonuniform matrix structure. For square MM with uniform and nonuniform block sizes (the latter simulates matrices with general irregular structure) we found excellent performance in weak and strong-scaling regimes, on commodity and high-end hardware.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

A massively-parallel, block-sparse tensor framework written in C++

33064C++, CMakeAug 14, 20132 weeks agoGPL-3.0

Similar Papers

Cite this paper

@article{calvin2015taskbased,
  title  = {Task-Based Algorithm for Matrix Multiplication: A Step Towards Block-Sparse Tensor Computing},
  author = {Justus A. Calvin and Edward F. Valeev},
  year   = {2015},
  eprint = {1504.05046},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1504.05046}
}

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/1504.05046.svg)](https://codeofpaper.com/paper/1504.05046)

Discussion