The MPI Parallel Environment (MPE) is a library of various utilities created at Argonne National Labs to facilitate MPI computing. Among other useful things, it includes a shared-display parallel library for displaying graphics on X-11 windowing systems, including Unix, Linux, MacOS X, etc.
If you install Argonne's implementation of MPI (a href="http://www.mcs.anl.gov/mpi">MPICH), then MPE is installed along with it.
However, if you have instead installed OpenMPI (which is a bit simpler to use), then MPE must be installed separately. This page describes how to do so.
tar xvf mpe2.tar.gzOn my system, that created a folder named mpe2-1.3.0; you may get a newer version.
cd mpe2-1.3.0
./configure CC=gcc MPI_CC=mpicc --disable-f77 --prefix=/usrThere are several important details here:
If you installed OpenMPI from a package manager, then you will need to figure out where the package manager installed it and specify the full path to that folder.
makeand wait while the make program builds the MPE library for you.
sudo make installand then enter your password to install the MPE library on your system. (You must be an administrator if you are installing to a system directory like /usr or /usr/local.)
This command will install the MPE library in the folder specified by your --prefix switch. The MPE header files will be placed in the include directory inside that folder (e.g., /usr/include), and the MPE library files will be placed in the lib directory inside that folder (e.g., /usr/lib).
If you want to test it out, here is a simple testMPE.c program and a Makefile you can use to build it.
Once you have built it, you should be able to run it with commands like:
mpirun -np 1 ./testMPEand/or
mpirun -np 8 ./testMPE
Note that to use MPE's graphics library, an X11 server must be running on your computer when you run your program, or a Could not open display runtime error will result.
For more information about MPE, see The MPE User Guide or Argonne's MPE pages.