Skip to content

Commit 64db513

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 6564419 commit 64db513

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
@@ -997,6 +997,7 @@ static int ompi_comm_split_type_core(ompi_communicator_t *comm,
997997
ompi_comm_assert_subscribe (newcomp, OMPI_COMM_ASSERT_LAZY_BARRIER);
998998
ompi_comm_assert_subscribe (newcomp, OMPI_COMM_ASSERT_ACTIVE_POLL);
999999
if (info) {
1000+
opal_info_dup(info, &newcomp->super.s_info);
10001001
opal_infosubscribe_change_info(&newcomp->super, info);
10011002
}
10021003

@@ -1353,6 +1354,7 @@ int ompi_comm_dup_with_info ( ompi_communicator_t * comm, opal_info_t *info, omp
13531354
ompi_comm_assert_subscribe (newcomp, OMPI_COMM_ASSERT_LAZY_BARRIER);
13541355
ompi_comm_assert_subscribe (newcomp, OMPI_COMM_ASSERT_ACTIVE_POLL);
13551356
if (info) {
1357+
opal_info_dup(info, &newcomp->super.s_info);
13561358
opal_infosubscribe_change_info(&newcomp->super, info);
13571359
}
13581360

0 commit comments

Comments
 (0)