Skip to content

Commit 2c4b54c

Browse files
authored
Merge pull request #6965 from bosilca/topic/contig_predef
Mark predefined empty datatype contiguous.
2 parents d7f6dd0 + 3522916 commit 2c4b54c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ompi/datatype/ompi_datatype_module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ int32_t ompi_datatype_number_of_predefined_data = 0;
6060
ompi_predefined_datatype_t ompi_mpi_datatype_null =
6161
{
6262
{
63-
OPAL_DATATYPE_INITIALIZER_EMPTY(OMPI_DATATYPE_FLAG_PREDEFINED),
63+
OPAL_DATATYPE_INITIALIZER_EMPTY(OMPI_DATATYPE_FLAG_PREDEFINED|OPAL_DATATYPE_FLAG_CONTIGUOUS),
6464
OMPI_DATATYPE_EMPTY_DATA(EMPTY),
6565
},
6666
{0, } /* padding */

opal/datatype/opal_datatype_module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ extern int opal_cuda_verbose;
5656
* into an array, which is initialized at runtime.
5757
* Everything is constant.
5858
*/
59-
OPAL_DECLSPEC const opal_datatype_t opal_datatype_empty = OPAL_DATATYPE_INITIALIZER_EMPTY(0);
59+
OPAL_DECLSPEC const opal_datatype_t opal_datatype_empty = OPAL_DATATYPE_INITIALIZER_EMPTY(OPAL_DATATYPE_FLAG_CONTIGUOUS);
6060

6161
OPAL_DECLSPEC const opal_datatype_t opal_datatype_loop = OPAL_DATATYPE_INITIALIZER_LOOP(0);
6262
OPAL_DECLSPEC const opal_datatype_t opal_datatype_end_loop = OPAL_DATATYPE_INITIALIZER_END_LOOP(0);

0 commit comments

Comments
 (0)