Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: Re: [OMPI users] ifort and gfortran module
From: Jim Kress (jimkress_58_at_[hidden])
Date: 2009-07-17 22:13:20


Why not generate an ifort version with a prefix of <directory you want for
openmpi>_intel
And the gfortran version with a prefix of <directory you want for
openmpi>_gcc

?

That's what I do and then use mpi-selector to switch between versions as
required.

Jim

-----Original Message-----
From: users-bounces_at_[hidden] [mailto:users-bounces_at_[hidden]] On
Behalf Of Martin Siegert
Sent: Friday, July 17, 2009 3:29 PM
To: Open MPI Users
Subject: [OMPI users] ifort and gfortran module

Hi,

I am wondering whether it is possible to support both the Intel
compiler ifort and gfortran within a single compiled version of
openmpi.
E.g.,
1. compile openmpi ifort as the Fortran compiler and install it
   in /usr/local/openmpi-1.3.3
2. compile openmpi using gfortran, but do not install it; only
   copy mpi.mod to /usr/local/openmpi-1.3.3/include/gfortran

Is there a way to cause mpif90 to include
/usr/local/openmpi-1.3.3/include/gfortran
before including /usr/local/openmpi-1.3.3/include if OMPI_FC is
set to gfortran (more precisely if `basename $OMPI_FC` = gfortran)?

Or is there another way of accomplishing this?

Cheers,
Martin

-- 
Martin Siegert
Head, Research Computing
WestGrid Site Lead
IT Services                                phone: 778 782-4691
Simon Fraser University                    fax:   778 782-4242
Burnaby, British Columbia                  email: siegert_at_[hidden]
Canada  V5A 1S6
_______________________________________________
users mailing list
users_at_[hidden]
http://www.open-mpi.org/mailman/listinfo.cgi/users