English

Approximate multiplication of nearly sparse matrices with decay in a fully recursive distributed task-based parallel framework

Numerical Analysis 2021-02-23 v7 Distributed, Parallel, and Cluster Computing Numerical Analysis

Abstract

In this paper we consider parallel implementations of approximate multiplication of large matrices with exponential decay of elements. Such matrices arise in computations related to electronic structure calculations and some other fields of computational science. Commonly, sparsity is introduced by dropping out small entries (truncation) of input matrices. Another approach, the sparse approximate multiplication algorithm [M. Challacombe and N. Bock, arXiv preprint 1011.3534, 2010] performs truncation of sub-matrix products. We consider these two methods and their combination, i.e. truncation of both input matrices and sub-matrix products. Implementations done using the Chunks and Tasks programming model and library [E. H. Rubensson and E. Rudberg, Parallel Comput., 40:328-343, 2014] are presented and discussed. We show that the absolute error in the Frobenius norm behaves as O(n1/2),nO\left(n^{1/2} \right), n \longrightarrow \infty and O(τp/2),τ0,p<2O\left(\tau^{p/2} \right), \tau \longrightarrow 0,\,\, \forall p < 2 for all three methods, where nn is the matrix size and τ\tau is the truncation threshold. We compare the methods on a model problem and show that the combined method outperforms the original two. The methods are also applied to matrices coming from large chemical systems with 106\sim 10^6 atoms. We show that the combination of the two methods achieves better weak scaling by reducing the amount of communication by a factor of 2\approx 2.

Keywords

Cite

@article{arxiv.1906.08148,
  title  = {Approximate multiplication of nearly sparse matrices with decay in a fully recursive distributed task-based parallel framework},
  author = {Anton G. Artemov},
  journal= {arXiv preprint arXiv:1906.08148},
  year   = {2021}
}

Comments

26 pages, 6 figures

R2 v1 2026-06-23T09:58:07.283Z