On 05/29/2014 07:11 AM, Lorenzo Donà wrote:
> I compiled openmpi 1.8.1 with intel compiler with this conf.
> ./configure FC=ifort CC=icc CXX=icpc
> but when i write mpif90 -v i found:
> Using built-in specs.
> Target: x86_64-apple-darwin13
> Configured with:
> --prefix=/opt/local --build=x86_64-apple-darwin13
> --libdir=/opt/local/lib/gcc48 --includedir=/opt/local/include/gcc48
> --infodir=/opt/local/share/info --mandir=/opt/local/share/man
> --datarootdir=/opt/local/share/gcc-4.8 --with-local-prefix=/opt/local
> --with-system-zlib --disable-nls --program-suffix=-mp-4.8
> --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local
> --with-cloog=/opt/local --enable-cloog-backend=isl
> --disable-cloog-version-check --enable-stage1-checking
> --disable-multilib --enable-lto --enable-libstdcxx-time
> --with-as=/opt/local/bin/as --with-ld=/opt/local/bin/ld
> --with-pkgversion='MacPorts gcc48 4.8.2_0'
> Thread model: posix
> gcc version 4.8.2 (MacPorts gcc48 4.8.2_0)
> and ----version i found:
> GNU Fortran (MacPorts gcc48 4.8.2_0) 4.8.2
> Copyright (C) 2013 Free Software Foundation, Inc.
> GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
> You may redistribute copies of GNU Fortran
> under the terms of the GNU General Public License.
> For more information about these matters, see the file named COPYING
> So I think that is not compiled with intel compiler please can you
> help me.
> thanks thanks a lot for your patience and to help me
Perhaps you forgot to make the Intel compilers active in your configure
session. Normally this would be done by command such as
source /opt/intel/composer_xe_2013/bin/compilervars.sh intel64
In such a case, if you would examine the configure log, you would expect
to see a failed attempt to reach ifort, falling back to your gfortran.
On the C and C++ side, the MPI libraries should be compatible between
gnu and Intel compilers, but the MPI Fortran library would not be
compatible between gfortran and ifort.