FWIW, The MPI spec claims the entire "MPI" namespace -- so if an app defines
their own "MPI" macro, technically, that's incorrect. :-)
On Aug 23, 2011, at 11:52 AM, Gus Correa wrote:
> Hi Gabrielle, Jeff
>
> Not sure if my interjection here may help,
> but user-defined macros like this,
> appe
Guys,
Have a look at the MUMPS linear solver code. They define a dummy MPI interface
for their serial version. That works well and it's enabled by changing an
include path and compiling without mpicc.
Damien
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
Gus Correa wr
Hi Gabrielle, Jeff
Not sure if my interjection here may help,
but user-defined macros like this,
appear in many codes we use here, combined with #ifdef
pre-processor directives.
This is certainly not new.
BTW, the name convention varies, I've seen MPI, USE_MPI, SPMD, MPP, etc.
Sometimes this pro
This has been discussed previously in the MPI Forum:
http://lists.mpi-forum.org/mpi-forum/2010/11/0838.php
I think it resulted in this proposal, but AFAIK it was never pushed forward by
a regular attendee of the Forum:
https://svn.mpi-forum.org/trac/mpi-forum-web/wiki/ReqPPMacro
-Dave
On Aug
I unfortunately won't be at the next Forum meeting, but you might want to ask
someone to bring it up for you.
It might not give you exactly what you want, however, because not all platforms
have "mpicc" (or similar) wrapper compilers. I.e., to compile an MPI
application on some platforms, you
Can I suggest to insert this macro in next MPI 3 standard?
I think It's very useful.
2011/8/23 Jeff Squyres
> I'm afraid not. Sorry! :-(
>
> We have the OPEN_MPI macro -- it'll be defined to 1 if you compile with
> Open MPI, but that doesn't really help your portability issue. :-\
>
> On Aug
I'm afraid not. Sorry! :-(
We have the OPEN_MPI macro -- it'll be defined to 1 if you compile with Open
MPI, but that doesn't really help your portability issue. :-\
On Aug 23, 2011, at 5:19 AM, Gabriele Fatigati wrote:
> Dear OpenMPi users,
>
> is there some portable MPI macro to check if
Dear OpenMPi users,
is there some portable MPI macro to check if a code is compiled with MPI
compiler? Something like _OPENMP for OpenMP codes:
#ifdef _OPENMP
#endif
it exist?
#ifdef MPI
#endif
Thanks
--
Ing. Gabriele Fatigati
HPC specialist
SuperComputing Applications and