Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

Subject: Re: [OMPI devel] How to deal with F90 mpi.mod with single stack and multiple compiler suites?
From: Larry Baker (baker_at_[hidden])
Date: 2013-08-22 14:15:54


.mod files are compiler-specific, and may even be version-specific. You may, however, be lucky enough to compile the Fortran interface definitions with ifort and supply that mpi.mod to ifort, even though the actual code was compiled with gfortran. I have never tried that -- we build separate development trees for each OpenMPI version/compiler product/compiler version.

Larry Baker
US Geological Survey

On 22 Aug 2013, at 6:50 AM, Jeff Squyres (jsquyres) wrote:

> Sadly, probably not. :(. You'll prbably have the same problem with c++, too.
> There *may* be compatibility command line options for ifort/icpc to make them link compatible w gfortran/g++, but I've never had much faith in them.
> Sent from my phone. No type good.
> On Aug 22, 2013, at 2:24 AM, "Christopher Samuel" <samuel_at_[hidden]> wrote:
>> Hash: SHA1
>> Hi folks,
>> We've got what we thought would be a fairly standard OMPI (1.6.5)
>> install which is a single install built with GCC and then setting the
>> appropriate variables to use the Intel compilers when someone loads
>> our "intel" module:
>> $ module show intel
>> [...]
>> setenv OMPI_CC icc
>> setenv OMPI_CXX icpc
>> setenv OMPI_F77 ifort
>> setenv OMPI_FC ifort
>> setenv OMPI_CFLAGS -xHOST -O3 -mkl=sequential
>> setenv OMPI_FFLAGS -xHOST -O3 -mkl=sequential
>> setenv OMPI_FCFLAGS -xHOST -O3 -mkl=sequential
>> setenv OMPI_CXXFLAGS -xHOST -O3 -mkl=sequential
>> This works wonderfully, *except* when our director attempted to build
>> an F90 program with the Intel compilers that fails to build because
>> the mpi.mod F90 module was produced with gfortran rather than the
>> Intel compilers. :-(
>> Is there any way to avoid having to do parallel installs of OMPI with
>> GCC and Intel compilers just to have two different versions of these
>> files?
>> My brief googling hasn't indicated anything, and I don't see anything
>> in the mpif90 manual page (though I have to admit I've had to rush to
>> try and get this done before I need to leave for the day). :-(
>> cheers,
>> Chris
>> - --
>> Christopher Samuel Senior Systems Administrator
>> VLSCI - Victorian Life Sciences Computation Initiative
>> Email: samuel_at_[hidden] Phone: +61 (0)3 903 55545
>> Version: GnuPG v1.4.11 (GNU/Linux)
>> Comment: Using GnuPG with Thunderbird -
>> =yJ6J
>> -----END PGP SIGNATURE-----
>> _______________________________________________
>> devel mailing list
>> devel_at_[hidden]
> _______________________________________________
> devel mailing list
> devel_at_[hidden]