Skip to main content

Numba @njittable MPI wrappers tested on Linux, macOS and Windows

Project description

numba-mpi

Python 3 LLVM Linux OK macOS OK Windows OK Github Actions Status Github Actions Status Maintenance License: GPL v3 PyPI version Anaconda-Server Badge DOI

Numba @njittable MPI wrappers

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

numba_mpi-0.30-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

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

Hashes for numba-mpi-0.30.tar.gz
Algorithm Hash digest
SHA256 b7f2c1c1f0f8bf31a0b161cc6173743bcddde74b67db505254e4ea2db1e39634
MD5 480df09498e22781fdcd2c729964ba36
BLAKE2b-256 2cf211aa06407e13c06ff23986a152a910df092a139e77e48317e51e6931c134

See more details on using hashes here.

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

Hashes for numba_mpi-0.30-py3-none-any.whl
Algorithm Hash digest
SHA256 bd62afe39b8ee68e08f2955f69cc47e8b321af894dffebd4af90caa102194f83
MD5 05685013607f7a8867adfd660b6aeca3
BLAKE2b-256 f6b9573ae24ee486b7075f29b1dc576a5e55714cd275cb087b4b1fc7f6414a96

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page