Supercomputer Applications
Using MPE - Graphics Package for MPI

  • The MPE Graphics Library works with a version of MPI called "MPICH"
    This means that you must use this MPICH system rather than LAM.
    1. Download the sample MPE graphics file - save as cxgraphics.c - cxgraphics.c
      Also see the longer version: cxgraphicsOrig.c

    2. To compile this file: mpecc cxgraphics (you don't need the ".c")
      This should make an executable file called "cxgraphics"

    3. To Run this program: mperun -np 3 cxgraphics
      ( "-np 3" means run with 3 processes)

    4. Now try a "MonteCarlo" approximation of PI
      • Download monteCarloMPI.c (save as monteCarloMPI.c)
      • Compile: mpecc monteCarloMPI.c
      • Run: mperun -np 3 monteCarloMPI .01 (the last number is epsilon - LOOK AT THE CODE!)

    5. MPE Resources: