Hi all:

I have openmpi 1.2.5 installed on SLES10 SP2. These packages should be compiled with gcc compilers. Now I have installed Intel C++ and Fortran compilers on my cluster. Can openmpi use Intel compilers withour recompiling?

I tried to use environment variable to indicate Intel compiler, but it seems the mpi commands still wanted to use gcc ones.
LS21-08:/opt/intel/fce/10.1.018/bin # mpif77 --showme
gfortran -I/usr/lib64/mpi/gcc/openmpi/include -pthread -L/usr/lib64/mpi/gcc/openmpi/lib64 -lmpi_f77 -lmpi -lopen-rte -lopen-pal -ldl -Wl,--export-dynamic -lnsl -lutil -lm -ldl
LS21-08:/opt/intel/fce/10.1.018/bin # export F77=/opt/intel/fce/10.1.018/bin/ifort
LS21-08:/opt/intel/fce/10.1.018/bin # rpm -e gcc-fortran-4.1.2_20070115-0.21
LS21-08:/opt/intel/fce/10.1.018/bin # mpif77 /LTC/matmul-for-intel.f
--------------------------------------------------------------------------
The Open MPI wrapper compiler was unable to find the specified compiler
gfortran in your PATH.

Note that this compiler was either specified at configure time or in
one of several possible environment variables.

--------------------------------------------------------------------------

Is it possible to change openmpi's underlying compiler? Thus I can use multiple compilers on one machine.

Thanks in advance!

Steven Wang
Email: wangwhao@cn.ibm.com