Hello,
looking at the Open MPI mpi.h include file there's a preprocessor macro
OPEN_MPI defined, as well as e.g. OMPI_MAJOR_VERSION, OMPI_MINOR_VERSION
and OMPI_RELEASE_VERSION. version.h e.g. also defines OMPI_VERSION
This seems to be missing in mpif.h and therefore something like
include 'mpif.h'
[...]
#ifdef OPEN_MPI
write( *, '("MPI library: OpenMPI",I2,".",I2,".",I2)' ) &
& OMPI_MAJOR_VERSION, OMPI_MINOR_VERSION, OMPI_RELEASE_VERSION
#endif
doesn't work for a FORTRAN openmpi program.
Which are the Open MPI specific preprocessor macros to be used for the
Fortran binding?
Thanks,
Martin
--
________________________________________________________________________
Dr.-Ing. Martin Bernreuther
University of Stuttgart
High Performance Computing Center (HLRS)
Nobelstrasse 19 (Office: Allmandring 30, 0.032)
70569 Stuttgart, Germany
Phone: (++49-(0)711) 685-64542, Fax: (++49-(0)711) 685-65832
E-Mail: bernreuther_at_[hidden]
URL: http://www.hlrs.de/people/bernreuther/
|