It happily supports multiple compilers on the same system, but not in
the way you mean.  You need another installation of OMPI (in,
say, /usr/lib64/mpi/intel) for icc/ifort.

Select by path manipulation.

On Mon, 2008-10-20 at 08:19 +0800, Wen Hao Wang wrote:
> 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: wangw...@cn.ibm.com
> 
> _______________________________________________
> users mailing list
> us...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/users

Reply via email to