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://atmos-cloud-sim-uj.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.26.tar.gz
(24.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.26-py3-none-any.whl
(21.8 kB
view details)
File details
Details for the file numba-mpi-0.26.tar.gz.
File metadata
- Download URL: numba-mpi-0.26.tar.gz
- Upload date:
- Size: 24.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32e06cddefe26fc9812d67fdf879245b759b40c6f115cc3d85899e88a2cd671e
|
|
| MD5 |
c43d4605be4c90cb36bcfb8b1f718c0a
|
|
| BLAKE2b-256 |
97796ebe9c1532616efd016bb84d9c91d121e45513c4c4a774f88e46bc2a56d8
|
File details
Details for the file numba_mpi-0.26-py3-none-any.whl.
File metadata
- Download URL: numba_mpi-0.26-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.9.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
801e57401cf1bd745fe44ca69cd93d1f494bf48207cad2c7cddfce2399b6c668
|
|
| MD5 |
64f088657aad1716d96b13b7d36e0b45
|
|
| BLAKE2b-256 |
6e9bd65e5b505b6680cb2199a8b5b15852c74674c3e81780dc999b0247e43233
|