Numba @njittable MPI wrappers tested on Linux, macOS and Windows
Project description
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:
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.17.tar.gz
(20.7 kB
view hashes)
Built Distribution
numba_mpi-0.17-py3-none-any.whl
(16.9 kB
view hashes)