Matt Eastman Message Passing Interface (MEMPI)

MEMPI created a simple python module that emulates a subset of the mpi command interface available in pyMPI and communicates over regular tcp sockets.

This package is not intended to be a high performance MPI implementation, but rather a tool to aid in teaching and prototyping simple python MPI applications.

  • Installation:
    • mpi.py: The MPI Python module.
    • Linux:
      1. mpiexec: The command to launch the mpi application.
    • Windows:
      1. mpiexec.py: The command to launch the mpi application.
      2. mpiexec.bat: Interface to windows batch file system.
    • pi.py: Simple demo to calculate pi.
  • Usage:
    • mpiexec -np 2 python pi.py

Note that in the usage example the number of processors specified was 2. This will give you the maximum performance on a dual core machine. Use 4 to get maximum performance on a quad core machine.