Skip to main content

Python bindings for MPI

Project description

This package provides Python bindings for the Message Passing Interface (MPI) standard. It is implemented on top of the MPI specification and exposes an API which grounds on the standard MPI-2 C++ bindings.

Features

This package supports:

  • Convenient communication of any picklable Python object

    • point-to-point (send & receive)

    • collective (broadcast, scatter & gather, reductions)

  • Fast communication of Python object exposing the Python buffer interface (NumPy arrays, builtin bytes/string/array objects)

    • point-to-point (blocking/nonbloking/persistent send & receive)

    • collective (broadcast, block/vector scatter & gather, reductions)

  • Process groups and communication domains

    • Creation of new intra/inter communicators

    • Cartesian & graph topologies

  • Parallel input/output:

    • read & write

    • blocking/nonbloking & collective/noncollective

    • individual/shared file pointers & explicit offset

  • Dynamic process management

    • spawn & spawn multiple

    • accept/connect

    • name publishing & lookup

  • One-sided operations

    • remote memory access (put, get, accumulate)

    • passive target syncronization (start/complete & post/wait)

    • active target syncronization (lock & unlock)

Install

Once you have a working MPI implementation and the mpicc compiler wrapper is on your search path, you can install this package using pip:

$ python -m pip install mpi4py

You can also install the in-development version of mpi4py using pip:

$ python -m pip install git+https://github.com/mpi4py/mpi4py

or:

$ python -m pip install https://github.com/mpi4py/mpi4py/tarball/master

You can also install it directly on Fedora (as well as RHEL and their derivatives using the EPEL software repository)

  • using dnf and the mpich package on x86_64:

    $ dnf install mpi4py-mpich
  • using dnf and the openmpi package on x86_64:

    $ dnf install mpi4py-openmpi

Please remember to load the correct module for your choosen MPI environment

  • for mpich package on x86_64 do:

    $ module load mpi/mpich-x86_64
    $ python -c "import mpi4py"
  • for openmpi package on x86_64 do:

    $ module load mpi/openmpi-x86_64
    $ python -c "import mpi4py"

Citations

If MPI for Python been significant to a project that leads to an academic publication, please acknowledge that fact by citing the project.

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

mpi4py-3.1.1.tar.gz (2.4 MB view details)

Uploaded Source

Built Distributions

mpi4py-3.1.1-cp39-cp39-win_amd64.whl (537.9 kB view details)

Uploaded CPython 3.9 Windows x86-64

mpi4py-3.1.1-cp39-cp39-win32.whl (440.1 kB view details)

Uploaded CPython 3.9 Windows x86

mpi4py-3.1.1-cp38-cp38-win_amd64.whl (544.8 kB view details)

Uploaded CPython 3.8 Windows x86-64

mpi4py-3.1.1-cp38-cp38-win32.whl (446.8 kB view details)

Uploaded CPython 3.8 Windows x86

mpi4py-3.1.1-cp37-cp37m-win_amd64.whl (518.3 kB view details)

Uploaded CPython 3.7m Windows x86-64

mpi4py-3.1.1-cp37-cp37m-win32.whl (433.2 kB view details)

Uploaded CPython 3.7m Windows x86

mpi4py-3.1.1-cp36-cp36m-win_amd64.whl (515.7 kB view details)

Uploaded CPython 3.6m Windows x86-64

mpi4py-3.1.1-cp36-cp36m-win32.whl (432.8 kB view details)

Uploaded CPython 3.6m Windows x86

mpi4py-3.1.1-cp35-cp35m-win_amd64.whl (470.4 kB view details)

Uploaded CPython 3.5m Windows x86-64

mpi4py-3.1.1-cp35-cp35m-win32.whl (385.7 kB view details)

Uploaded CPython 3.5m Windows x86

mpi4py-3.1.1-cp27-cp27m-win_amd64.whl (481.0 kB view details)

Uploaded CPython 2.7m Windows x86-64

mpi4py-3.1.1-cp27-cp27m-win32.whl (402.6 kB view details)

Uploaded CPython 2.7m Windows x86

File details

Details for the file mpi4py-3.1.1.tar.gz.

File metadata

  • Download URL: mpi4py-3.1.1.tar.gz
  • Upload date:
  • Size: 2.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for mpi4py-3.1.1.tar.gz
Algorithm Hash digest
SHA256 e11f8587a3b93bb24c8526addec664b586b965d83c0882b884c14dc3fd6b9f5c
MD5 c33dddc144093b6e4daea48e2755a189
BLAKE2b-256 bdd3b1e686fcf2fe1677fa010f0a29a1b8a8cd3fd56161aacd59c5be252fe382

See more details on using hashes here.

Provenance

File details

Details for the file mpi4py-3.1.1-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: mpi4py-3.1.1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 537.9 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for mpi4py-3.1.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 81ed7088aff5b7c0feec5521c08e3c815f6156d1de3c7498b8987dbce4b4b621
MD5 625f8b766a29f7dc3bfd42549dbcc4b3
BLAKE2b-256 16b7d4e5c70f8a158345e8df6bbfdcf368bce9d1f0eb714d8776af375c526e45

See more details on using hashes here.

Provenance

File details

Details for the file mpi4py-3.1.1-cp39-cp39-win32.whl.

File metadata

  • Download URL: mpi4py-3.1.1-cp39-cp39-win32.whl
  • Upload date:
  • Size: 440.1 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for mpi4py-3.1.1-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 2d98718eeb9a9d1bbaf6df085f5fb6b64a1a01fda9cb464dfb683edb39f18ae7
MD5 e074c5638b664bd6f373ecf91a087b44
BLAKE2b-256 2227741e0ea4bae5c2cff50a3f8d196e6c2093138a19d2d122df77a6d507f7a2

See more details on using hashes here.

Provenance

File details

Details for the file mpi4py-3.1.1-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: mpi4py-3.1.1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 544.8 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for mpi4py-3.1.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6d62c4c9fb14e9c8805d1a9f6e00e4688fbd763d03ed737a253dc566d1240933
MD5 39c15ff7ff28fec2cc1d7dbfd514bd20
BLAKE2b-256 bf1aaeedf3fe2100a2e873bd0ed02bdf26161d4108b69d8f91d620a13674899d

See more details on using hashes here.

Provenance

File details

Details for the file mpi4py-3.1.1-cp38-cp38-win32.whl.

File metadata

  • Download URL: mpi4py-3.1.1-cp38-cp38-win32.whl
  • Upload date:
  • Size: 446.8 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for mpi4py-3.1.1-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4f18b8ff2e1444dd944cbf17b9c93a953fc31b24ee0368e2acb952abb08634dd
MD5 ebc0b84d4f2beb66fb4e2d97ad299dcf
BLAKE2b-256 5e95019a7b07efae8a26392ffaead9beae61731f4f5c7703fc3c2a532cd9b42f

See more details on using hashes here.

Provenance

File details

Details for the file mpi4py-3.1.1-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: mpi4py-3.1.1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 518.3 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for mpi4py-3.1.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 0a6bbc990af3ed823c14fd3248714b5f87aec772575c4b77ca5c760043c91a55
MD5 b704e35b3844dc2478760254b619060e
BLAKE2b-256 89795d18ea597c7598657af5dd1d1c208a4b6e72f02ad80e37840a5172cc4620

See more details on using hashes here.

Provenance

File details

Details for the file mpi4py-3.1.1-cp37-cp37m-win32.whl.

File metadata

  • Download URL: mpi4py-3.1.1-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 433.2 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for mpi4py-3.1.1-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 8d2346750c532c9e3faedf8ef17b132c8d100ee36b7b09aa589f80c55065569a
MD5 42bfc000e0d5938f86d4e33513674ea1
BLAKE2b-256 c47a515d0b6e8710c503c2c2c8bcc259442e7511fa3416c7e5f73560a337d5f3

See more details on using hashes here.

Provenance

File details

Details for the file mpi4py-3.1.1-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: mpi4py-3.1.1-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 515.7 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for mpi4py-3.1.1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 63fb2a0d4cef6d98d5cf40d89751361e89456edf84abbeca2f4b1698992fc772
MD5 dc99ca8e67b9798aab926e9b6c662924
BLAKE2b-256 c8d5dca50c10745b0fe2636fa2cef09defcba6d6840e97cf71a570841bc1313c

See more details on using hashes here.

Provenance

File details

Details for the file mpi4py-3.1.1-cp36-cp36m-win32.whl.

File metadata

  • Download URL: mpi4py-3.1.1-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 432.8 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for mpi4py-3.1.1-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 d4161456c0a225ab4c8ac8cb9b0dd0fdffc45a61b219b8301945f1f89b48c150
MD5 089b297e66beafe138e3f481c03a8316
BLAKE2b-256 cbd540cf0f885f6549dcda4bd5ffd91bdb37ba45e210c4ad5a743b486184a77e

See more details on using hashes here.

Provenance

File details

Details for the file mpi4py-3.1.1-cp35-cp35m-win_amd64.whl.

File metadata

  • Download URL: mpi4py-3.1.1-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 470.4 kB
  • Tags: CPython 3.5m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for mpi4py-3.1.1-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 b0a44737bc4879242ff318e212d1eca6802eaf92b3e753786ec621107e4da25c
MD5 9357a38863ae7afe8f145c50daaccc55
BLAKE2b-256 398a8da22c236456a8f0b5ee2d1086388240a21114c5a269ae809e33893a6c48

See more details on using hashes here.

Provenance

File details

Details for the file mpi4py-3.1.1-cp35-cp35m-win32.whl.

File metadata

  • Download URL: mpi4py-3.1.1-cp35-cp35m-win32.whl
  • Upload date:
  • Size: 385.7 kB
  • Tags: CPython 3.5m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for mpi4py-3.1.1-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 5f8395c8f4bcd9bd293c919d2a3364deb217379336060e350f611f55290b39e0
MD5 03dbc906a63f443e0856b2a571727e53
BLAKE2b-256 701a6ab872e470c3756aaaf3480eb04b9526395a55c8513cf3977a28cb549757

See more details on using hashes here.

Provenance

File details

Details for the file mpi4py-3.1.1-cp27-cp27m-win_amd64.whl.

File metadata

  • Download URL: mpi4py-3.1.1-cp27-cp27m-win_amd64.whl
  • Upload date:
  • Size: 481.0 kB
  • Tags: CPython 2.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for mpi4py-3.1.1-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 d7c640e43b8cf84d4dfd9d11658cafb66d1167dae4c8d9426aa05f6d5fd9e191
MD5 bf384ae73a7d036e2232efc21add596e
BLAKE2b-256 a23cc8d416541436769204d0a3dbe9cd37af97cc7edd644e15dad6b54bc2da32

See more details on using hashes here.

Provenance

File details

Details for the file mpi4py-3.1.1-cp27-cp27m-win32.whl.

File metadata

  • Download URL: mpi4py-3.1.1-cp27-cp27m-win32.whl
  • Upload date:
  • Size: 402.6 kB
  • Tags: CPython 2.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for mpi4py-3.1.1-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 40d45c6a9d0303257368c66f86dfd9018c773ecdd9f91269771cdee2816008ab
MD5 450bffd679188cfdb31f32f68f6bbfd1
BLAKE2b-256 0a03a17bc9221a1c41024a1c48693e5e8241c96981619f4044788afb82dfddaa

See more details on using hashes here.

Provenance

Supported by

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