MPI-rical: Data-Driven MPI Distributed Parallelism Assistance with Transformers

Nadav Schneider, Tal Kadosh, Niranjan Hasabnis, Timothy Mattson, Yuval Pinter +1 more
5/16/2023
17 citations
cs.DCcs.CLcs.LG
transformer-attention

No official code found. Best implementation: Scientific-Computing-Lab/MPI-rical (6 stars, Python, last commit 2024-08-03).

Abstract

Message Passing Interface (MPI) plays a crucial role in distributed memory parallelization across multiple nodes. However, parallelizing MPI code manually, and specifically, performing domain decomposition, is a challenging, error-prone task.

Show full abstract

In this paper, we address this problem by developing MPI-RICAL, a novel data-driven, programming-assistance tool that assists programmers in writing domain decomposition based distributed memory parallelization code. Specifically, we train a supervised language model to suggest MPI functions and their proper locations in the code on the fly. We also introduce MPICodeCorpus, the first publicly available corpus of MPI-based parallel programs that is created by mining more than 15,000 open-source repositories on GitHub. Experimental results have been done on MPICodeCorpus and more importantly, on a compiled benchmark of MPI-based parallel programs for numerical computations that represent real-world scientific applications. MPI-RICAL achieves F1 scores between 0.87-0.91 on these programs, demonstrating its accuracy in suggesting correct MPI functions at appropriate code locations.. The source code used in this work, as well as other relevant sources, are available at: https://github.com/Scientific-Computing-Lab-NRCN/MPI-rical

View on arXivView PDF

Code Implementations(1)

MPI-rical: Data-Driven MPI Distributed Parallelism Assistance with Transformers

61Python, CMay 16, 20232 years ago

Similar Papers

Cite this paper

@article{schneider2023mpirical,
  title  = {MPI-rical: Data-Driven MPI Distributed Parallelism Assistance with Transformers},
  author = {Nadav Schneider and Tal Kadosh and Niranjan Hasabnis and Timothy Mattson and Yuval Pinter and Gal Oren},
  year   = {2023},
  eprint = {2305.09438},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.09438v3}
}

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

Discussion