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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pympdata_mpi-1.6.1.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.1.tar.gz
Algorithm Hash digest
SHA256 5be04be50f8f054a2976c62522117b2518417e6f17f580d3fd771b276b0310e0
MD5 409d243396266d5d822a61c7779800e2
BLAKE2b-256 327dd62daf23bcc2001411ad42c07c88be388671b43419ace41fd3799ae54527

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pympdata_mpi-1.6.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 572138d104c26d8c8c03d73cd34160e6c447c0e02ab7dc2b783726a5925c1c43
MD5 6bc6062f748b3d63ae59832cbdc19aa3
BLAKE2b-256 00ee4f12f9c67ffa1d479ae64e665ea018a2aca279d2b1af54c948dad7852aea

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