@@ -74,20 +74,9 @@ int ompi_osc_ucx_fence(int mpi_assert, struct ompi_win_t *win) {
74
74
}
75
75
76
76
if (!(mpi_assert & MPI_MODE_NOPRECEDE )) {
77
- if (module -> flavor == MPI_WIN_FLAVOR_DYNAMIC ) {
78
- int i ;
79
- for (i = 0 ; i < OMPI_OSC_UCX_ATTACH_MAX ; i ++ ) {
80
- ret = opal_common_ucx_wpmem_flush (module -> local_dynamic_win_info [i ].mem ,
81
- OPAL_COMMON_UCX_SCOPE_WORKER , 0 /*ignore*/ );
82
- if (ret != OMPI_SUCCESS ) {
83
- return ret ;
84
- }
85
- }
86
- } else {
87
- ret = opal_common_ucx_wpmem_flush (module -> mem , OPAL_COMMON_UCX_SCOPE_WORKER , 0 /*ignore*/ );
88
- if (ret != OMPI_SUCCESS ) {
89
- return ret ;
90
- }
77
+ ret = opal_common_ucx_ctx_flush (module -> ctx , OPAL_COMMON_UCX_SCOPE_WORKER , 0 /*ignore*/ );
78
+ if (ret != OMPI_SUCCESS ) {
79
+ return ret ;
91
80
}
92
81
}
93
82
@@ -183,7 +172,7 @@ int ompi_osc_ucx_complete(struct ompi_win_t *win) {
183
172
184
173
module -> epoch_type .access = NONE_EPOCH ;
185
174
186
- ret = opal_common_ucx_wpmem_flush (module -> mem , OPAL_COMMON_UCX_SCOPE_WORKER , 0 /*ignore*/ );
175
+ ret = opal_common_ucx_ctx_flush (module -> ctx , OPAL_COMMON_UCX_SCOPE_WORKER , 0 /*ignore*/ );
187
176
if (ret != OMPI_SUCCESS ) {
188
177
return ret ;
189
178
}
@@ -199,7 +188,7 @@ int ompi_osc_ucx_complete(struct ompi_win_t *win) {
199
188
OSC_UCX_VERBOSE (1 , "opal_common_ucx_mem_post failed: %d" , ret );
200
189
}
201
190
202
- ret = opal_common_ucx_wpmem_flush (module -> state_mem , OPAL_COMMON_UCX_SCOPE_EP ,
191
+ ret = opal_common_ucx_ctx_flush (module -> ctx , OPAL_COMMON_UCX_SCOPE_EP ,
203
192
module -> start_grp_ranks [i ]);
204
193
if (ret != OMPI_SUCCESS ) {
205
194
return ret ;
0 commit comments