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 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           
> _______________________________________________
> users mailing list
> us...@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/users


-- 
Jeff Squyres
jsquy...@cisco.com
For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/


Reply via email to