This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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.

Release History

Release History

This version
History Node

2.0.0

History Node

1.3.1

History Node

1.3

History Node

1.2.2

History Node

1.2.1

History Node

1.2

History Node

1.1.0

History Node

1.0.0

History Node

0.6.0

History Node

0.5.0

History Node

0.4.0

History Node

0.4.0rc4

History Node

0.4.0rc3

History Node

0.4.0rc2

History Node

0.4.0rc1

History Node

0.3.1

History Node

0.2.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
mpi4py-2.0.0-cp26-none-win32.whl (319.0 kB) Copy SHA256 Checksum SHA256 cp26 Wheel Oct 18, 2015
mpi4py-2.0.0-cp26-none-win_amd64.whl (387.1 kB) Copy SHA256 Checksum SHA256 cp26 Wheel Oct 18, 2015
mpi4py-2.0.0-cp27-none-win32.whl (318.3 kB) Copy SHA256 Checksum SHA256 cp27 Wheel Oct 18, 2015
mpi4py-2.0.0-cp27-none-win_amd64.whl (385.3 kB) Copy SHA256 Checksum SHA256 cp27 Wheel Oct 18, 2015
mpi4py-2.0.0-cp33-none-win32.whl (320.5 kB) Copy SHA256 Checksum SHA256 cp33 Wheel Oct 18, 2015
mpi4py-2.0.0-cp33-none-win_amd64.whl (378.2 kB) Copy SHA256 Checksum SHA256 cp33 Wheel Oct 18, 2015
mpi4py-2.0.0-cp34-none-win32.whl (320.3 kB) Copy SHA256 Checksum SHA256 cp34 Wheel Oct 18, 2015
mpi4py-2.0.0-cp34-none-win_amd64.whl (378.3 kB) Copy SHA256 Checksum SHA256 cp34 Wheel Oct 18, 2015
mpi4py-2.0.0-cp35-none-win32.whl (305.3 kB) Copy SHA256 Checksum SHA256 cp35 Wheel Oct 18, 2015
mpi4py-2.0.0-cp35-none-win_amd64.whl (375.5 kB) Copy SHA256 Checksum SHA256 cp35 Wheel Oct 18, 2015
mpi4py-2.0.0.tar.gz (1.3 MB) Copy SHA256 Checksum SHA256 Source Oct 18, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting