MPICH

If you want to produce a 32-bit executable

To run the code:

/usr/local/mpichn32/bin/mpirun -np 4 a.out

You can include any of these scripts in your makefile as well.

If you need to produce a 64-bin executable: use the same instructions substituting /usr/local/mpich-1.2.5 for /usr/local/mpichn32

Running Jobs

Serial jobs:

time a.out< input > & output &

Parallel jobs:

  1. Define the number of processes your code will utilize:
  2. csh or tcsh shell;

    setenv MP_SET_NUMTHREADS 4

    sh or bash shell:

    MP_SET_NUMTHREADS=4 export MP_SET_NUMTHREADS or OMP_NUM_THREADS=4 export OMP_SET_NUMTHREADS

  3. Run code as:
  4. time my-par-code.x < input >& output &


©2010 NSCEE