Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: Re: [OMPI devel] RFC: Adding -DOPEN_MPI=1 to mpif77 and mpif90
From: Ralf Wildenhues (Ralf.Wildenhues_at_[hidden])
Date: 2010-02-11 01:00:23

Hi Jeff,

* Jeff Squyres wrote on Wed, Feb 10, 2010 at 10:02:27PM CET:
> WHAT: Add -DOPEN_MPI=1 to the mpif77 and mpif90 command lines

> But we can put -DOPEN_MPI=1 in the argv that the wrapper adds. This
> seems like a safe way to add it; it makes no difference whether the
> Fortran file is set to the preprocessor or not when it is compiled.

It won't work with IBM xlf which needs -WF,-D. I'm sure there are other
Fortran compilers that don't grok -D either (and may not have any other
flag), but I'm not sure whether OpenMPI cares about them.