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,scatter/gather&allgather,barrierandwtime - basic asynchronous communication with
isend/irecv(only for contiguous arrays); for request handling includingwait/waitall/waitanyandtest/testall/testany - not yet implemented: support for non-default communicators, ...
- 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.36.tar.gz
(33.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
numba_mpi-0.36-py3-none-any.whl
(26.3 kB
view details)
File details
Details for the file numba-mpi-0.36.tar.gz.
File metadata
- Download URL: numba-mpi-0.36.tar.gz
- Upload date:
- Size: 33.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c4d26f14a870b9a3e7d869a7b94ad18d14e8856ded68261024d528d8f244d27
|
|
| MD5 |
43d071f2b2a89793eda0fa56b49c3063
|
|
| BLAKE2b-256 |
91789d775a123157eac23a03e2ee1c01f5338684f9e8d094d7db2ed1584e8183
|
File details
Details for the file numba_mpi-0.36-py3-none-any.whl.
File metadata
- Download URL: numba_mpi-0.36-py3-none-any.whl
- Upload date:
- Size: 26.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f512870e1fc6a85a496369b70c8a21da10cbea2d1b89187973cb0f474ac5d3c5
|
|
| MD5 |
d6dde8dd67016edf11a1af3b190a8b71
|
|
| BLAKE2b-256 |
0013ec107f7ec4ed17dc430bd3fcc375623034aa9843bcc0eeeb690a84b701ed
|