Skip to content

Commit a477b22

Browse files
authored
Merge pull request #13089 from bosilca/fix/ucx_dyn_window_refcnt
Set the refcnt to zero for new memory zones.
2 parents 4f87c6b + c95e453 commit a477b22

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ompi/mca/osc/ucx/osc_ucx_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,6 +1068,7 @@ int ompi_osc_ucx_win_attach(struct ompi_win_t *win, void *base, size_t len) {
10681068
memmove((void *)&module->state.dynamic_wins[insert_index+1],
10691069
(void *)&module->state.dynamic_wins[insert_index],
10701070
(OMPI_OSC_UCX_ATTACH_MAX - (insert_index + 1)) * sizeof(ompi_osc_dynamic_win_info_t));
1071+
module->local_dynamic_win_info[insert_index].refcnt = 0;
10711072
} else {
10721073
insert_index = 0;
10731074
}

0 commit comments

Comments
 (0)