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.6.2.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.6.2-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pympdata_mpi-1.6.2.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.6.2.tar.gz
Algorithm Hash digest
SHA256 863d90cd684a5b103bfff4940c08a42a9e07b7b711dd9ac8a4bf88f7281021af
MD5 3302eb2fce6fca711fcda2b457ce3736
BLAKE2b-256 9400cb57d9e75b71222958e85580e2dac7d8813cb36a051184211825dfdfa8fc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pympdata_mpi-1.6.2-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.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c7db1778365608b6e897d2f7cee6bd74f68064b44ce8f0a8a886b9e0d0f469cb
MD5 9e641f61c9114acc8c47ab4d278be674
BLAKE2b-256 353ccfeec291e323338efa8840d8bce6f890a50a69d68178ea6a00ec1290d7d4

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