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.26.tar.gz (24.8 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.26-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

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

Hashes for numba-mpi-0.26.tar.gz
Algorithm Hash digest
SHA256 32e06cddefe26fc9812d67fdf879245b759b40c6f115cc3d85899e88a2cd671e
MD5 c43d4605be4c90cb36bcfb8b1f718c0a
BLAKE2b-256 97796ebe9c1532616efd016bb84d9c91d121e45513c4c4a774f88e46bc2a56d8

See more details on using hashes here.

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

Hashes for numba_mpi-0.26-py3-none-any.whl
Algorithm Hash digest
SHA256 801e57401cf1bd745fe44ca69cd93d1f494bf48207cad2c7cddfce2399b6c668
MD5 64f088657aad1716d96b13b7d36e0b45
BLAKE2b-256 6e9bd65e5b505b6680cb2199a8b5b15852c74674c3e81780dc999b0247e43233

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