Numba @njittable MPI wrappers tested on Linux, macOS and Windows
Project description
numba-mpi
Numba @njittable MPI wrappers
- covering:
size
/rank
,send
/recv
,allreduce
,bcast
,barrier
- API based on NumPy and supporting numeric and character datatypes
- auto-generated docstring-based API docs on the web: https://numba-mpi.github.io/numba-mpi
- pure-Python implementation with packages available on PyPI and Conda Forge
- CI-tested on: Linux (MPICH, OpenMPI & Intel MPI), macOS (MPICH & OpenMPI) and Windows (MS MPI)
Hello world example:
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:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
numba-mpi-0.29.tar.gz
(24.9 kB
view hashes)
Built Distribution
numba_mpi-0.29-py3-none-any.whl
(21.8 kB
view hashes)