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-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 (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.

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
mpi4py-3.0.0-cp27-cp27m-win32.whl (385.6 kB) Copy SHA256 hash SHA256 Wheel cp27 Nov 8, 2017
mpi4py-3.0.0-cp27-cp27m-win_amd64.whl (489.9 kB) Copy SHA256 hash SHA256 Wheel cp27 Nov 8, 2017
mpi4py-3.0.0-cp33-cp33m-win32.whl (386.4 kB) Copy SHA256 hash SHA256 Wheel cp33 Nov 8, 2017
mpi4py-3.0.0-cp33-cp33m-win_amd64.whl (478.7 kB) Copy SHA256 hash SHA256 Wheel cp33 Nov 8, 2017
mpi4py-3.0.0-cp34-cp34m-win32.whl (386.4 kB) Copy SHA256 hash SHA256 Wheel cp34 Nov 8, 2017
mpi4py-3.0.0-cp34-cp34m-win_amd64.whl (478.8 kB) Copy SHA256 hash SHA256 Wheel cp34 Nov 8, 2017
mpi4py-3.0.0-cp35-cp35m-win32.whl (367.3 kB) Copy SHA256 hash SHA256 Wheel cp35 Nov 8, 2017
mpi4py-3.0.0-cp35-cp35m-win_amd64.whl (477.2 kB) Copy SHA256 hash SHA256 Wheel cp35 Nov 8, 2017
mpi4py-3.0.0-cp36-cp36m-win32.whl (369.1 kB) Copy SHA256 hash SHA256 Wheel cp36 Nov 8, 2017
mpi4py-3.0.0-cp36-cp36m-win_amd64.whl (478.8 kB) Copy SHA256 hash SHA256 Wheel cp36 Nov 8, 2017
mpi4py-3.0.0.tar.gz (1.4 MB) Copy SHA256 hash SHA256 Source None Nov 8, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page