1
1
openmpi/ompi/mpi/fortran
Jeff Squyres 0089ac20af Fortran: put type(c_ptr) interfaces in a separate file in the TKR mpi module
Older gfortran compilers (e.g., the gfortran that ships in RHEL5) do
not support ISO_C_BINDING, and therefore do not support the
TYPE(C_PTR) type.  As such, they cannot support the overloaded
interfaces for MPI_WIN_ALLOCATE_SHARED and MPI_SHARED_QUERY that are
mandated in MPI-3.

So we separate those interfaces out into a separate .F90 file that is
#include'd in the tkr mpi.F90 file.  In this separate .F90 file, we
use an #if to determine whether the compiler supports ISO_C_BINDING or
not.

Also re-jiggered the order of testing in ompi_setup_mpi_fortran.m4: we
now need to test whether the compiler supports ISO_C_BINDING even when
we're only building the mpi module (not strictly when we're building
the mpi_f08 module).

Finally, tweaked the use-mpi-tkr/Makefile.am to:

* Add some proper dependencies for mpi.F90
* Allow the general AM compilation to be used instead of supplying a
  specific rule for compiling mpi.F90

cmr=v1.8.2:ticket=trac:4736

This commit was SVN r32204.

The following Trac tickets were found above:
  Ticket 4736 --> https://svn.open-mpi.org/trac/ompi/ticket/4736
2014-07-10 19:10:03 +00:00
..
base Fortran: Move all f08-related modules out of fortran/base 2014-06-19 13:44:08 +00:00
mpiext == Highlights == 2012-04-18 15:57:29 +00:00
mpif-h fortran: fix MPI_Win_allocate_shared and MPI_Win_shared_query 2014-07-09 00:10:04 +00:00
use-mpi-f08 fortran: fix MPI_Win_allocate_shared and MPI_Win_shared_query 2014-07-09 00:10:04 +00:00
use-mpi-f08-desc r30519 (and the associated CMR #4209) left out fixing 2014-02-03 16:55:33 +00:00
use-mpi-ignore-tkr fortran: fix MPI_Win_allocate_shared and MPI_Win_shared_query 2014-07-09 00:10:04 +00:00
use-mpi-tkr Fortran: put type(c_ptr) interfaces in a separate file in the TKR mpi module 2014-07-10 19:10:03 +00:00
c_to_integer_kind_mapping.pdf Add a PDF of the C to Fortran type mapping, taken from the Fortran 2012-04-18 22:50:35 +00:00
configure-fortran-output-bottom.h Assume we always have fortran PROCEDURE support 2014-05-01 18:18:38 +00:00
configure-fortran-output.h.in Fortran: put type(c_ptr) interfaces in a separate file in the TKR mpi module 2014-07-10 19:10:03 +00:00