Skip to content

Commit 2308a9c

Browse files
committed
datatype: Fix MPI_UB/MPI_LB correctness issue
MPI_LB and MPI_UB are always available when building OMPI and, for ABI reasons, must be handled properly by the datatype engine. Signed-off-by: Brian Barrett <bbarrett@amazon.com>
1 parent 400857e commit 2308a9c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

ompi/datatype/ompi_datatype_args.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -831,9 +831,7 @@ ompi_datatype_t* ompi_datatype_get_single_predefined_type_from_args( ompi_dataty
831831
return NULL;
832832
}
833833
}
834-
#if OMPI_ENABLE_MPI1_COMPAT
835834
if (current_predef != MPI_LB && current_predef != MPI_UB) {
836-
#endif
837835
if( NULL == predef ) { /* This is the first iteration */
838836
predef = current_predef;
839837
} else {
@@ -847,9 +845,7 @@ ompi_datatype_t* ompi_datatype_get_single_predefined_type_from_args( ompi_dataty
847845
return NULL;
848846
}
849847
}
850-
#if OMPI_ENABLE_MPI1_COMPAT
851848
}
852-
#endif
853849
}
854850
return predef;
855851
}

0 commit comments

Comments
 (0)