@@ -65,14 +65,21 @@ int32_t ompi_datatype_number_of_predefined_data = 0;
6565 * Additionally to OMPI_DATATYPE_INIT_PREDEFINED_BASIC_TYPE, we have a OMPI_DATATYPE_INIT_PREDEFINED,
6666 * for all available types (getting rid of duplication of the name.
6767 */
68- ompi_predefined_datatype_t ompi_mpi_datatype_null =
68+ ompi_predefined_datatype_t ompi_mpi_datatype_null = {
6969 {
70- {
71- OPAL_DATATYPE_INITIALIZER_EMPTY (OMPI_DATATYPE_FLAG_PREDEFINED |OPAL_DATATYPE_FLAG_CONTIGUOUS ),
72- OMPI_DATATYPE_EMPTY_DATA (EMPTY ),
73- },
74- {0 , } /* padding */
75- };
70+ OPAL_DATATYPE_INITIALIZER_EMPTY (OMPI_DATATYPE_FLAG_PREDEFINED
71+ | OPAL_DATATYPE_FLAG_CONTIGUOUS ),
72+ .id = OMPI_DATATYPE_MPI_NULL ,
73+ .d_f_to_c_index = -1 ,
74+ .d_keyhash = NULL ,
75+ .args = NULL ,
76+ .packed_description = 0 ,
77+ .name = "MPI_DATATYPE_NULL" ,
78+ },
79+ {
80+ 0 ,
81+ } /* padding */
82+ };
7683
7784ompi_predefined_datatype_t ompi_mpi_unavailable = OMPI_DATATYPE_INIT_PREDEFINED (UNAVAILABLE , 0 );
7885
@@ -317,7 +324,7 @@ ompi_predefined_datatype_t ompi_mpi_count = OMPI_DATATYPE_INIT_UNAVAILABLE_BASIC
317324 * Everything referring to types/ids should be ORDERED as in ompi_datatype_basicDatatypes array.
318325 */
319326const ompi_datatype_t * ompi_datatype_basicDatatypes [OMPI_DATATYPE_MPI_MAX_PREDEFINED ] = {
320- [OMPI_DATATYPE_MPI_EMPTY ] = & ompi_mpi_datatype_null .dt ,
327+ [OMPI_DATATYPE_MPI_NULL ] = & ompi_mpi_datatype_null .dt ,
321328 [OMPI_DATATYPE_MPI_INT8_T ] = & ompi_mpi_int8_t .dt ,
322329 [OMPI_DATATYPE_MPI_UINT8_T ] = & ompi_mpi_uint8_t .dt ,
323330 [OMPI_DATATYPE_MPI_INT16_T ] = & ompi_mpi_int16_t .dt ,
0 commit comments