Skip to main content

MPI for Python

Project description

This package provides Python bindings for the Message Passing Interface (MPI) standard. It is implemented on top of the MPI-1/2/3 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:

    $ pip install mpi4py
  • using easy_install (deprecated):

    $ easy_install mpi4py

You can also install the in-development version of mpi4py

  • using pip:

    $ pip install git+https://bitbucket.org/mpi4py/mpi4py

    or:

    $ pip install https://bitbucket.org/mpi4py/mpi4py/get/master.tar.gz
  • using easy_install (deprecated):

    $ easy_install git+https://bitbucket.org/mpi4py/mpi4py

    or:

    $ easy_install https://bitbucket.org/mpi4py/mpi4py/get/master.tar.gz

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

  • using yum and the openmpi package on x86_64:

    # yum install mpi4py-openmpi
  • using yum and the mpich package on x86_64:

    # yum install mpi4py-mpich

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

  • for openmpi package on x86_64 do:

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

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

    Note however, that the later doesn’t work on RHEL (and their derivatives) because of this bug and you need to manually adjust your PYTHONPATH accordingly.

Citations

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mpi4py-2.0.0.tar.gz (1.3 MB view details)

Uploaded Source

Built Distributions

mpi4py-2.0.0-cp35-none-win_amd64.whl (375.5 kB view details)

Uploaded CPython 3.5 Windows x86-64

mpi4py-2.0.0-cp35-none-win32.whl (305.3 kB view details)

Uploaded CPython 3.5 Windows x86

mpi4py-2.0.0-cp34-none-win_amd64.whl (378.3 kB view details)

Uploaded CPython 3.4 Windows x86-64

mpi4py-2.0.0-cp34-none-win32.whl (320.3 kB view details)

Uploaded CPython 3.4 Windows x86

mpi4py-2.0.0-cp33-none-win_amd64.whl (378.2 kB view details)

Uploaded CPython 3.3 Windows x86-64

mpi4py-2.0.0-cp33-none-win32.whl (320.5 kB view details)

Uploaded CPython 3.3 Windows x86

mpi4py-2.0.0-cp27-none-win_amd64.whl (385.3 kB view details)

Uploaded CPython 2.7 Windows x86-64

mpi4py-2.0.0-cp27-none-win32.whl (318.3 kB view details)

Uploaded CPython 2.7 Windows x86

mpi4py-2.0.0-cp26-none-win_amd64.whl (387.1 kB view details)

Uploaded CPython 2.6 Windows x86-64

mpi4py-2.0.0-cp26-none-win32.whl (319.0 kB view details)

Uploaded CPython 2.6 Windows x86

File details

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

File metadata

  • Download URL: mpi4py-2.0.0.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mpi4py-2.0.0.tar.gz
Algorithm Hash digest
SHA256 6543a05851a7aa1e6d165e673d422ba24e45c41e4221f0993fe1e5924a00cb81
MD5 4f7d8126d7367c239fd67615680990e3
BLAKE2b-256 eeb8f443e1de0b6495479fc73c5863b7b5272a4ece5122e3589db6cd3bb57eeb

See more details on using hashes here.

Provenance

File details

Details for the file mpi4py-2.0.0-cp35-none-win_amd64.whl.

File metadata

File hashes

Hashes for mpi4py-2.0.0-cp35-none-win_amd64.whl
Algorithm Hash digest
SHA256 5489e10d388bccd50c0d97d249a7bed0924cc4c27f32aef4584d013d9a9594a0
MD5 14fbc25840874615a266954974b9a1ea
BLAKE2b-256 0eaad769bd7e110321b4d25bc2435432b0c6ed940cf6d149c2b33f3db305a7bd

See more details on using hashes here.

Provenance

File details

Details for the file mpi4py-2.0.0-cp35-none-win32.whl.

File metadata

File hashes

Hashes for mpi4py-2.0.0-cp35-none-win32.whl
Algorithm Hash digest
SHA256 91c5989fb8e4ed3b02ebb70dd9504c50065cbb6f57b8f1756865d377481f6d5a
MD5 7824331e01e461ab4c9c07e624c226d8
BLAKE2b-256 6754134470ec8bfb054be35f44746dd948115cf8678634fb1482d369d1bc767c

See more details on using hashes here.

Provenance

File details

Details for the file mpi4py-2.0.0-cp34-none-win_amd64.whl.

File metadata

File hashes

Hashes for mpi4py-2.0.0-cp34-none-win_amd64.whl
Algorithm Hash digest
SHA256 f28fc4205f86996621facc1c0b7a65df4085ab7b94bc452e10bbf38969e72d52
MD5 66671076d979cc2b3cbe0b5aa1bb4619
BLAKE2b-256 cdb097855121edf6c5ae8d54db1762785f7d976b4b02d4565d7129d3b95ceed6

See more details on using hashes here.

Provenance

File details

Details for the file mpi4py-2.0.0-cp34-none-win32.whl.

File metadata

File hashes

Hashes for mpi4py-2.0.0-cp34-none-win32.whl
Algorithm Hash digest
SHA256 b366abab4e2135b2695f9e1e7c4341d536b2c8344d184081972145cded28b427
MD5 a5c07403dbeaae2829b1d143df32e28c
BLAKE2b-256 93dd1453bb87ebe3aa803c6310f8e65213b55ed3068f7e0ec1c2cd39ac5d2461

See more details on using hashes here.

Provenance

File details

Details for the file mpi4py-2.0.0-cp33-none-win_amd64.whl.

File metadata

File hashes

Hashes for mpi4py-2.0.0-cp33-none-win_amd64.whl
Algorithm Hash digest
SHA256 09c59285a224829cc85e6bdc73f71deb9385e108ad1f20c4c4d963da878ad462
MD5 9dfd210692a4869f4407d480e79d9198
BLAKE2b-256 78a2ef59cf02fc086da47deb555e6497a4b79079908782163e56200ae28c1952

See more details on using hashes here.

Provenance

File details

Details for the file mpi4py-2.0.0-cp33-none-win32.whl.

File metadata

File hashes

Hashes for mpi4py-2.0.0-cp33-none-win32.whl
Algorithm Hash digest
SHA256 4bb93cc53d7aee66107ed36d17b7134a229796161770adb3ff153c947c62b0ea
MD5 3b08cf2907400f706d01e7e43af76c22
BLAKE2b-256 e9e75c7792992e56aacf8ae4ebb3538a06d518e304a6a295fae4bfe9111450cb

See more details on using hashes here.

Provenance

File details

Details for the file mpi4py-2.0.0-cp27-none-win_amd64.whl.

File metadata

File hashes

Hashes for mpi4py-2.0.0-cp27-none-win_amd64.whl
Algorithm Hash digest
SHA256 53bbd3e87682ee6eda278f50d66b07a43cc0a8eb55d3aa243a55325b7eb79503
MD5 bc03f2cb1b270634a19f767d0a77514b
BLAKE2b-256 15516bf7a00ba213768ce9447e1f27fd80786d5f752cf15019d838390983f236

See more details on using hashes here.

Provenance

File details

Details for the file mpi4py-2.0.0-cp27-none-win32.whl.

File metadata

File hashes

Hashes for mpi4py-2.0.0-cp27-none-win32.whl
Algorithm Hash digest
SHA256 356e09ffc612fc774b4f9d8134149936825cf1aabd8e7a53f0f9fe7c8d3e9ce3
MD5 0dcce8a20d2ee422638ceef675cb15de
BLAKE2b-256 2d90ebe9baee56cdaecb9c2979124d1b9670210f36af3bdd3506f4ff0954ff73

See more details on using hashes here.

Provenance

File details

Details for the file mpi4py-2.0.0-cp26-none-win_amd64.whl.

File metadata

File hashes

Hashes for mpi4py-2.0.0-cp26-none-win_amd64.whl
Algorithm Hash digest
SHA256 e96e3e1458d3158abb9f3bede1f3c300e411a930af4d92c1c3fb1709ceb26551
MD5 802828d941622190c79389814af73c34
BLAKE2b-256 79aaf005fb538957d70b79000ac9bf871bc22c2966074078d6497f2959425442

See more details on using hashes here.

Provenance

File details

Details for the file mpi4py-2.0.0-cp26-none-win32.whl.

File metadata

File hashes

Hashes for mpi4py-2.0.0-cp26-none-win32.whl
Algorithm Hash digest
SHA256 64ae6383a753716046da00daadc21ab0a1b5c08cfd6372c962c54d82b516c69e
MD5 656cd10d31b62491bb2d63a9c46e2d31
BLAKE2b-256 dab1e9e65d04f4a701414975a975c99906eda61a40ad6c4d8d794aeb2746ce1a

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