Versions of MPICH are compiled for each compiler of choice. (gcc, intel, and pgi). Be sure to compile and run with the same version of MPICH! For example, to use the Intel C/Fortran compilers:
- csh/tcsh: source /package/mpich/COMPILER/shellrc.csh
- bash/ksh: . /package/mpich/COMPILER/shellrc.sh
- COMPILER is one of gcc, intel, or pgi.
- Make sure to source the correct shellrc file file before compiling AND running your MPI program (in your PBS file, as well!)
Preston M Smith
2005-02-22