Skip to content

Commit 9790373

Browse files
author
Valentin Petrov
committed
coll/hcoll: Fixes predifined types mapping
1 parent e5c7512 commit 9790373

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)