Reproducibility of Parallel Preconditioned Conjugate Gradient in Hybrid Programming Environments

Roman Iakymchuk, Maria Barreda, Stef Graillat, Jose I. Aliaga, Enrique S. Quintana-Orti
5/14/2020
cs.DCcs.MS

Official code: riakymch/ReproCG_MPI_OMP (2 stars, C, BSD-3-Clause, last commit 2021-10-05).

Abstract

The Preconditioned Conjugate Gradient method is often employed for the solution of linear systems of equations arising in numerical simulations of physical phenomena. While being widely used, the solver is also known for its lack of accuracy while computing the residual.

Show full abstract

In this article, we propose two algorithmic solutions that originate from the ExBLAS project to enhance the accuracy of the solver as well as to ensure its reproducibility in a hybrid MPI + OpenMP tasks programming environment. One is based on ExBLAS and preserves every bit of information until the final rounding, while the other relies upon floating-point expansions and, hence, expands the intermediate precision. Instead of converting the entire solver into its ExBLAS-related implementation, we identify those parts that violate reproducibility/non-associativity, secure them, and combine this with the sequential executions. These algorithmic strategies are reinforced with programmability suggestions to assure deterministic executions. Finally, we verify these approaches on two modern HPC systems: both versions deliver reproducible number of iterations, residuals, direct errors, and vector-solutions for the overhead of less than 37.7 % on 768 cores.

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause

Reproducible Parallel Preconditioned Conjugate Gradient in Hybrid Programming Environments

20C, C++Apr 29, 20205 years agoBSD-3-Clause

Similar Papers

Cite this paper

@article{iakymchuk2020reproducibility,
  title  = {Reproducibility of Parallel Preconditioned Conjugate Gradient in Hybrid Programming Environments},
  author = {Roman Iakymchuk and Maria Barreda and Stef Graillat and Jose I. Aliaga and Enrique S. Quintana-Orti},
  year   = {2020},
  eprint = {2005.07282},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2005.07282}
}

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

Discussion