Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: [OMPI users] MPI defined macro
From: Gabriele Fatigati (g.fatigati_at_[hidden])
Date: 2011-08-23 05:19:35


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 Innovation Department
Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy
www.cineca.it                    Tel:   +39 051 6171722
g.fatigati [AT] cineca.it