1
1
openmpi/ompi/mpi
Gilles Gouaillardet 02f8215b25 ompi: enhance MPI_File_set_view datatype check.
Per MPI 3.1 chapter 13.3 :
"Derived etypes can be constructed by using any of the MPI
datatype constructor routines, provided all resulting typemap
displacements are non-negative and monotonically nondecreasing."
Same restriction applies to ftypes.

add the OMPI_DATATYPE_CHECK_FOR_VIEW() macro that is
check the underlying opal_datatype_t is monotonic, on top
of all checks performed in OMPI_DATATYPE_CHECK_FOR_RECV().

Since checking monotoniciy is expensive, check is only performed
when needed, but the result is cached by ompi_datatype_is_monotonic().

Thanks Wei-keng Liao for the valuable feedback.
Thanks George for the guidance.

Refs. open-mpi/ompi#4682

Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
2018-01-09 18:05:15 +09:00
..
c ompi: enhance MPI_File_set_view datatype check. 2018-01-09 18:05:15 +09:00
cxx configury: remove the --disable-mpi-io option 2017-09-20 14:39:09 +09:00
fortran Merge pull request #4667 from kawashima-fj/pr/f08-pmpi 2018-01-05 03:45:10 -06:00
java mpi/java: Remove dlopen() workaround 2017-08-24 11:56:17 -04:00
man MPI_Attr_get: doc fix: MPI_Comm_create_attr -> MPI_Comm_get_attr 2017-12-17 07:44:22 -07:00
tool scripted symbol name change (ompi_ prefix) 2017-07-11 02:13:23 -04:00
help-mpi-api.txt Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00
Makefile.am Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00