1
1
openmpi/ompi/datatype
Nathan Hjelm c4c69b4ddf MPI-3: add support for large counts using derived datatypes
Add support for MPI_Count type and MPI_COUNT datatype and add the required
MPI-3 functions MPI_Get_elements_x, MPI_Status_set_elements_x,
MPI_Type_get_extent_x, MPI_Type_get_true_extent_x, and MPI_Type_size_x.
This commit adds only the C bindings. Fortran bindins will be added in
another commit. For now the MPI_Count type is define to have the same size
as MPI_Offset. The type is required to be at least as large as MPI_Offset
and MPI_Aint. The type was initially intended to be a ssize_t (if it was
the same size as a long long) but there were issues compiling romio with
that definition (despite the inclusion of stddef.h).

I updated the datatype engine to use size_t instead of uint32_t to support
large datatypes. This will require some review to make sure that 1) the
changes are beneficial, 2) nothing was broken by the change (I doubt
anything was), and 3) there are no performance regressions due to this
change.

Increase the maximum number of predifined datatypes to support MPI_Count

Put common get_elements code to ompi/datatype/ompi_datatype_get_elements.c

Update MPI_Get_count to reflect changes in MPI-3 (return MPI_UNDEFINED when the count is too large for an int)

This commit was SVN r28932.
2013-07-23 15:35:14 +00:00
..
Makefile.am MPI-3: add support for large counts using derived datatypes 2013-07-23 15:35:14 +00:00
ompi_datatype_args.c Fix an issue with the packing/unpacking of datatype representations 2013-07-15 10:54:22 +00:00
ompi_datatype_create_contiguous.c - Split the datatype engine into two parts: an MPI specific part in 2009-07-13 04:56:31 +00:00
ompi_datatype_create_darray.c Fix the darray issue where the UB was not computed correctly. The 2012-07-24 22:24:54 +00:00
ompi_datatype_create_indexed.c Add support for the new MPI_Type_create_hindexed_block (MPI 3.0). 2012-08-07 12:48:30 +00:00
ompi_datatype_create_struct.c Refs trac:2273 2010-03-16 00:47:10 +00:00
ompi_datatype_create_subarray.c Fix the darray issue where the UB was not computed correctly. The 2012-07-24 22:24:54 +00:00
ompi_datatype_create_vector.c Refs trac:2273 2010-03-16 00:47:10 +00:00
ompi_datatype_create.c Make ompi_datatype_destroy a real function (instead of inline). 2011-02-25 00:37:52 +00:00
ompi_datatype_external32.c - Split the datatype engine into two parts: an MPI specific part in 2009-07-13 04:56:31 +00:00
ompi_datatype_get_elements.c MPI-3: add support for large counts using derived datatypes 2013-07-23 15:35:14 +00:00
ompi_datatype_internal.h MPI-3: add support for large counts using derived datatypes 2013-07-23 15:35:14 +00:00
ompi_datatype_match_size.c - Split the datatype engine into two parts: an MPI specific part in 2009-07-13 04:56:31 +00:00
ompi_datatype_module.c MPI-3: add support for large counts using derived datatypes 2013-07-23 15:35:14 +00:00
ompi_datatype_sndrcv.c Use the correct value for detecting packed data. 2009-08-11 19:09:45 +00:00
ompi_datatype.h MPI-3: add support for large counts using derived datatypes 2013-07-23 15:35:14 +00:00