1
1
openmpi/ompi/mpi/fortran/base
Jeff Squyres 12e82daa78 mpi_f08: Fix param name and string length for MPI_GET_LIBRARY_VERSION
Junchao Zhang pointed out to me that we had the wrong parameter name
and string length specification for the "version" parameter.  This
matters because Fortran allows passing by parameter name
(vs. parameter ordering).  Specifically, we had the interface as:

{{{
subroutine MPI_Get_library_version_f08(name,resultlen,ierror)
   character(len=MPI_MAX_PROCESSOR_NAME), intent(out) :: name
...etc.
}}}

but it should be:

{{{
subroutine MPI_Get_library_version_f08(version,resultlen,ierror)
   character(len=MPI_MAX_LIBRARY_VERSION_STRING), intent(out) :: version
...etc.
}}}

Thankfully, MPI_MAX_PROCESSOR_NAME and MPI_MAX_LIBRARY_VERSION_STRING
are both 255 in OMPI, so there's no ABI issue caused by changing the
length from MMPN --> MMLVS.

The ABI is also unaffected by the parameter name change: if you
compile/link an MPI application calling MPI_GET_LIBRARY_VERSION with
1.8, it'll still run-time link with this change.

However, if an MPI program compiled using parameter name passing with
the old/incorrect parameter name ("name"), it won't be able to compile
with the new/correct parameter name ("version").  But this will only
happen for an incorrect MPI application (because the MPI-3 mandated
parameter name is "version", not "name"), so they deserve what they
get.

cmr=v1.8.1:reviewer=dgoodell

This commit was SVN r31365.
2014-04-10 14:45:36 +00:00
..
attr_fn_f.c == Highlights == 2012-04-18 15:57:29 +00:00
attr_fn-f90-interfaces.h Add Emacs mode at the top of the file 2014-01-23 01:32:26 +00:00
constants.h Add missing MPI_WEIGHTS_EMPTY constant 2014-03-27 20:59:52 +00:00
conversion_fn_null_f.c == Highlights == 2012-04-18 15:57:29 +00:00
conversion_fn_null-f90-interface.h Move common code to ompi/mpi/fortran/base. 2014-01-23 01:28:04 +00:00
datarep.h == Highlights == 2012-04-18 15:57:29 +00:00
f90_accessors.c == Highlights == 2012-04-18 15:57:29 +00:00
fint_2_int.h use OMPI_ARRAY_LOGICAL_2_INT_CLEANUP instead of free 2012-05-24 21:06:03 +00:00
Makefile.am Shift .h files from one Makefile.am to another to enable "make dist" 2014-01-23 02:00:05 +00:00
mpi-f08-interfaces-callbacks.F90 Revert r30164: it was just the wrong thing to do. 2014-01-22 00:51:03 +00:00
mpi-f08-interfaces.F90 mpi_f08: Fix param name and string length for MPI_GET_LIBRARY_VERSION 2014-04-10 14:45:36 +00:00
mpi-f08-types.F90 Fix typos in r31260 2014-03-27 22:34:28 +00:00
pmpi-f08-interfaces.F90 mpi_f08: Fix param name and string length for MPI_GET_LIBRARY_VERSION 2014-04-10 14:45:36 +00:00
strings.c This commit fixes some of the Coverity reported warnings. I addressed 2014-04-06 18:23:49 +00:00
strings.h == Highlights == 2012-04-18 15:57:29 +00:00
test_constants_f.c == Highlights == 2012-04-18 15:57:29 +00:00