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

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


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.11.tar.gz (19.5 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.11-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file numba-mpi-0.11.tar.gz.

File metadata

  • Download URL: numba-mpi-0.11.tar.gz
  • Upload date:
  • Size: 19.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for numba-mpi-0.11.tar.gz
Algorithm Hash digest
SHA256 8ee4ee6fff7b96a2803bb16fe186ed2612ef8414191dffdeac4c2d72552e728a
MD5 1f44ddfe54be3be09be9928ebad66d4d
BLAKE2b-256 d651d61c961ec67907d2176c47c43d9c2d132c8171b9f886ee9eb87909e8ed04

See more details on using hashes here.

File details

Details for the file numba_mpi-0.11-py3-none-any.whl.

File metadata

  • Download URL: numba_mpi-0.11-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for numba_mpi-0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 f29cf01a21060028a1cae4175749d9cb19a54b5c44788b72a6a31bd471fc8a27
MD5 e496c54d38373f8b41b39f9a0efe79ba
BLAKE2b-256 d4bbbe328d638a0cade949b6470f3ded94c2b728db76b2c9267ac8fd5e1824a6

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