If you want to produce a 32-bit executable
To run the code:
/usr/local/mpichn32/bin/mpirun -np 4 a.outYou 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 JobsSerial jobs:
time a.out< input > & output &Parallel jobs:
csh or tcsh shell;
setenv MP_SET_NUMTHREADS 4sh or bash shell:
MP_SET_NUMTHREADS=4 export MP_SET_NUMTHREADS or OMP_NUM_THREADS=4 export OMP_SET_NUMTHREADS