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 rathernumba-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 grants no. PLG/2023/016369 and no. PLG/2024/017823.
copyright: Jagiellonian University & AGH University of Krakow licence: GPL v3
Metadata
Release files for pympdata-mpi 1.7.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pympdata_mpi-1.7.2.tar.gz | 10.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pympdata_mpi-1.7.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.9 kB
Release files / pympdata_mpi-1.7.2.tar.gz
| Download URL | pympdata_mpi-1.7.2.tar.gz |
|---|---|
| Size | 10.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1b419dea05b55bea2dd61e392110d1e85b24d8f0ecbdd6b85f9a9e04a99ab9a8
|
|
BLAKE2b-256 checksum How to use checksums |
c7575ba019b3bffde6a3557e86f502aedda7944b1437ef56e91e631a0c4ec96b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Release files / pympdata_mpi-1.7.2-py3-none-any.whl
| Download URL | pympdata_mpi-1.7.2-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2df91c56605ad80d983677fc8ec7bd7ed0c4c3ab3db35aeb221c01fffd604ce1
|
|
BLAKE2b-256 checksum How to use checksums |
f99f0c7f92290ee3768d8ccd4698847056eb670c16e8f2be9fca0e3f8d212e24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|