Metadata-Version: 2.1
Name: numba-mpi
Version: 0.13
Summary: Numba @njittable MPI wrappers tested on Linux, macOS and Windows
Home-page: https://github.com/atmos-cloud-sim-uj/numba-mpi
Author: https://github.com/atmos-cloud-sim-uj/numba-mpi/graphs/contributors
License: GPL v3
Project-URL: Tracker, https://github.com/atmos-cloud-sim-uj/numba-mpi/issues
Project-URL: Documentation, https://atmos-cloud-sim-uj.github.io/numba-mpi
Project-URL: Source, https://github.com/atmos-cloud-sim-uj/numba-mpi
Description-Content-Type: text/markdown
License-File: LICENSE

# numba-mpi

[![Python 3](https://img.shields.io/static/v1?label=Python&logo=Python&color=3776AB&message=3)](https://www.python.org/)
[![LLVM](https://img.shields.io/static/v1?label=LLVM&logo=LLVM&color=gold&message=Numba)](https://numba.pydata.org)
[![Linux OK](https://img.shields.io/static/v1?label=Linux&logo=Linux&color=yellow&message=%E2%9C%93)](https://en.wikipedia.org/wiki/Linux)
[![macOS OK](https://img.shields.io/static/v1?label=macOS&logo=Apple&color=silver&message=%E2%9C%93)](https://en.wikipedia.org/wiki/macOS)
[![Windows OK](https://img.shields.io/static/v1?label=Windows&logo=Windows&color=white&message=%E2%9C%93)](https://en.wikipedia.org/wiki/Windows)
[![Github Actions Status](https://github.com/atmos-cloud-sim-uj/numba-mpi/workflows/tests/badge.svg?branch=main)](https://github.com/atmos-cloud-sim-uj/numba-mpi/actions/workflows/tests.yml)
[![Github Actions Status](https://github.com/atmos-cloud-sim-uj/numba-mpi/workflows/Pylint/badge.svg?branch=main)](https://github.com/atmos-cloud-sim-uj/numba-mpi/actions/workflows/pylint.yml)
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/atmos-cloud-sim-uj/PySDM/graphs/commit-activity)
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0.html)
[![PyPI version](https://badge.fury.io/py/numba-mpi.svg)](https://pypi.org/project/numba-mpi)

#### Numba @njittable MPI wrappers tested on Linux, macOS and Windows

API documentation is maintained at: https://atmos-cloud-sim-uj.github.io/numba-mpi

Hello world example:
```python
import numba, numba_mpi, numpy

@numba.njit()
def hello():
  print(numba_mpi.rank())
  print(numba_mpi.size())

  src = numpy.array([1., 2., 3., 4., 5.])
  dst_tst = numpy.empty_like(src)

  if numba_mpi.rank() == 0:
    numba_mpi.send(src, dest=1, tag=11)
  elif numba_mpi.rank() == 1:
    numba_mpi.recv(dst_tst, source=0, tag=11)

hello()
```

For information on MPI, see:
- https://www.mpi-forum.org/docs/
- https://www.open-mpi.org/doc/
- https://www.mpich.org/
- https://docs.microsoft.com/en-us/message-passing-interface/microsoft-mpi
- https://mpi4py.readthedocs.io/en/stable/
