Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] openmpi - gfortran and ifort conflict
From: Tim Prince (n8tm_at_[hidden])
Date: 2011-12-14 15:05:34


On 12/14/2011 1:20 PM, Fernanda Oliveira wrote:
> Hi Micah,
>
> I do not know if it is exactly what you need but I know that there are
> environment variables to use with intel mpi. They are: I_MPI_CC,
> I_MPI_CXX, I_MPI_F77, I_MPI_F90. So, you can set this using 'export'
> for bash, for instance or directly when you run.
>
> I use in my bashrc:
>
> export I_MPI_CC=icc
> export I_MPI_CXX=icpc
> export I_MPI_F77=ifort
> export I_MPI_F90=ifort
>
>
> Let me know if it helps.
> Fernanda Oliveira
>
>

I didn't see any indication that Intel MPI was in play here. Of course,
that's one of the first thoughts, as under Intel MPI,
mpif90 uses gfortran
mpiifort uses ifort
mpicc uses gcc
mpiCC uses g++
mpiicc uses icc
mpiicpc uses icpc
and all the Intel compilers use g++ to find headers and libraries.
The advice to try 'which mpif90' would show whether you fell into this
bunker.
If you use Intel cluster checker, you will see noncompliance if anyone's
MPI is on the default paths. You must set paths explicitly according to
the MPI you want. Admittedly, that tool didn't gain a high level of
adoption.

-- 
Tim Prince