Using MPI with Python

Audience: Faculty, Researchers and Staff

This KB Article References:
This Information is Intended for: Faculty, Researchers, Staff
Last Updated: October 13, 2017

Anaconda2 is installed on Seawulf, which is used to manage packages.  It also comes with commonly used scientific computing libraries.

For multi-node programming in Python, mpi4py is installed.  A python script must interface with this package to run across nodes.  Example scripts can be found here.

To launch a Python job using PBS, load the following modules:

        module load shared
        module load anaconda/2 
        module load mvapich2/gcc/64/2.2rc1


To run your script, use mpirun:

        mpirun python

Additional Information

There are no additional resources available for this article.

Getting Help

The Division of Information Technology provides support on all of our services. If you require assistance please submit a support ticket through the IT Service Management system.

Submit A Ticket

Supported By