Skip to main content

PyMPDATA + numba-mpi coupler sandbox

Project description

PyMPDATA-MPI

PyMPDATA-MPI constitutes a PyMPDATA + numba-mpi coupler enabling numerical solutions of transport equations with the MPDATA numerical scheme in a hybrid parallelisation model with both multi-threading and MPI distributed memory communication. PyMPDATA-MPI adapts to API of PyMPDATA offering domain decomposition logic.

Dependencies and installation

Along with PyMPDATA dependencies, this package also depends on numba-mpi and h5py.

To install PyMPDATA-MPI, first we recommend installing MPI-compatible h5py and then downloading the package via pip:

HDF5_MPI="ON" pip install --no-binary=h5py h5py
pip install PyMPDATA-MPI

Examples gallery

We strongly encourage to take a look at out examples gallery availible on Github.

Contributing, reporting issues, seeking support

Submitting new code to the project, please preferably use GitHub pull requests it helps to keep record of code authorship, track and archive the code review workflow and allows to benefit from the continuous integration setup which automates execution of tests with the newly added code.

Design goals

  • MPI support for PyMPDATA implemented externally (i.e., not incurring any overhead or additional dependencies for PyMPDATA users)
  • MPI calls within Numba njitted code (hence not using mpi4py, but rather numba-mpi)
  • hybrid domain-decomposition parallelism: threading (internal in PyMPDATA, in the inner dimension) + MPI (either inner or outer dimension)
  • example simulation scenarios featuring HDF5/MPI-IO output storage (using h5py)
  • py-modelrunner simulation orchestration
  • portability across Linux & macOS (no Windows support as of now due to challenges in getting HDF5/MPI-IO to work there)
  • Continuous Integration (CI) with different OSes and different MPI implementations (leveraging to mpi4py's setup-mpi Github Action)
  • full test coverage including CI builds asserting on same results with multi-node vs. single-node computations (with help of pytest-mpi)
  • ships as a pip-installable package - aimed to be a dependency of domain-specific packages

Credits & acknowledgments:

PyMPDATA-MPI started as a separate project for the MSc thesis of Kacper Derlatka (@Delcior). Integration of PyMPDATA-MPI into PyMPDATA repo was carried out as a part of BEng project of Michał Wroński.

Development of PyMPDATA-MPI has been supported by the Poland's National Science Centre (grant no. 2020/39/D/ST10/01220).

We acknowledge Poland’s high-performance computing infrastructure PLGrid (HPC Centers: ACK Cyfronet AGH) for providing computer facilities and support within computational grant no. PLG/2023/016369

copyright: Jagiellonian University & AGH University of Krakow licence: GPL v3

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pympdata_mpi-1.7.0.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pympdata_mpi-1.7.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file pympdata_mpi-1.7.0.tar.gz.

File metadata

  • Download URL: pympdata_mpi-1.7.0.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for pympdata_mpi-1.7.0.tar.gz
Algorithm Hash digest
SHA256 c325af9123798a6c9bc2d6c6e0a0b30e61aed8f4a5037b6f27d8a1b913ce997d
MD5 924e9e85f535716c1d635c89d4b3c037
BLAKE2b-256 89d8044fb168103ebde667417ab0afa56a78dcac3653fbdecdd34014c6a24b66

See more details on using hashes here.

File details

Details for the file pympdata_mpi-1.7.0-py3-none-any.whl.

File metadata

  • Download URL: pympdata_mpi-1.7.0-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for pympdata_mpi-1.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 40ffe1ab42dcb1eedbc9001bfce651963a1f304c771853fb923dbf7817497c69
MD5 0cae73c57fad313f3005e215bad6d8b8
BLAKE2b-256 a6ab4e7726142a21ddf1198fe9d4e0f6e9e21107e4965a3fafabc74c1893393a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page