Skip to content

Commit deae1ab

Browse files
authored
Merge pull request #1985 from vspetrov/master
coll/hcoll: Fixes predifined types mapping
2 parents b96ec77 + 9790373 commit deae1ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ompi/mca/coll/hcoll/coll_hcoll_dtypes.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ ompi_dtype_2_hcoll_dtype( ompi_datatype_t *dtype,
140140
int opal_type_id = dtype->super.id;
141141
dte_data_representation_t dte_data_rep = DTE_ZERO;
142142

143-
if (ompi_type_id < OMPI_DATATYPE_MPI_MAX_PREDEFINED) {
143+
if (ompi_type_id < OMPI_DATATYPE_MPI_MAX_PREDEFINED &&
144+
dtype->super.flags & OMPI_DATATYPE_FLAG_PREDEFINED) {
144145
if (opal_type_id > 0 && opal_type_id < OPAL_DATATYPE_MAX_PREDEFINED) {
145146
dte_data_rep = *ompi_datatype_2_dte_data_rep[opal_type_id];
146147
}

0 commit comments

Comments
 (0)