Skip to content

Commit 996713d

Browse files
committed
ompi/communicator: duplicate provided opal info in the new communicator
This patch adds missing info duplication steps. Unused/unreferenced info will be removed in later calls to opal_info_remove_unreferenced Signed-off-by: Wenduo Wang <[email protected]>
1 parent b66d907 commit 996713d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ompi/communicator/comm.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -987,6 +987,7 @@ static int ompi_comm_split_type_core(ompi_communicator_t *comm,
987987
ompi_comm_assert_subscribe (newcomp, OMPI_COMM_ASSERT_LAZY_BARRIER);
988988
ompi_comm_assert_subscribe (newcomp, OMPI_COMM_ASSERT_ACTIVE_POLL);
989989
if (info) {
990+
opal_info_dup(info, &newcomp->super.s_info);
990991
opal_infosubscribe_change_info(&newcomp->super, info);
991992
}
992993

@@ -1343,6 +1344,7 @@ int ompi_comm_dup_with_info ( ompi_communicator_t * comm, opal_info_t *info, omp
13431344
ompi_comm_assert_subscribe (newcomp, OMPI_COMM_ASSERT_LAZY_BARRIER);
13441345
ompi_comm_assert_subscribe (newcomp, OMPI_COMM_ASSERT_ACTIVE_POLL);
13451346
if (info) {
1347+
opal_info_dup(info, &newcomp->super.s_info);
13461348
opal_infosubscribe_change_info(&newcomp->super, info);
13471349
}
13481350

0 commit comments

Comments
 (0)