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.30.tar.gz
(25.0 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.30-py3-none-any.whl
(21.8 kB
view details)
File details
Details for the file numba-mpi-0.30.tar.gz.
File metadata
- Download URL: numba-mpi-0.30.tar.gz
- Upload date:
- Size: 25.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7f2c1c1f0f8bf31a0b161cc6173743bcddde74b67db505254e4ea2db1e39634
|
|
| MD5 |
480df09498e22781fdcd2c729964ba36
|
|
| BLAKE2b-256 |
2cf211aa06407e13c06ff23986a152a910df092a139e77e48317e51e6931c134
|
File details
Details for the file numba_mpi-0.30-py3-none-any.whl.
File metadata
- Download URL: numba_mpi-0.30-py3-none-any.whl
- Upload date:
- Size: 21.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd62afe39b8ee68e08f2955f69cc47e8b321af894dffebd4af90caa102194f83
|
|
| MD5 |
05685013607f7a8867adfd660b6aeca3
|
|
| BLAKE2b-256 |
f6b9573ae24ee486b7075f29b1dc576a5e55714cd275cb087b4b1fc7f6414a96
|