Skip to content

Commit bf15476

Browse files
authored
Merge pull request #13091 from bosilca/v5.0/import/ucx_dyn_window_refcnt
Set the refcnt to zero for new memory zones.
2 parents 83829b1 + 876696f commit bf15476

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
@@ -1057,6 +1057,7 @@ int ompi_osc_ucx_win_attach(struct ompi_win_t *win, void *base, size_t len) {
10571057
memmove((void *)&module->state.dynamic_wins[insert_index+1],
10581058
(void *)&module->state.dynamic_wins[insert_index],
10591059
(OMPI_OSC_UCX_ATTACH_MAX - (insert_index + 1)) * sizeof(ompi_osc_dynamic_win_info_t));
1060+
module->local_dynamic_win_info[insert_index].refcnt = 0;
10601061
} else {
10611062
insert_index = 0;
10621063
}

0 commit comments

Comments
 (0)