Skip to content

Commit 4afa6c7

Browse files
author
Mamzi Bayatpour [email protected] ()
committed
code reorganization
1 parent addc6b8 commit 4afa6c7

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

ompi/mca/osc/ucx/osc_ucx_comm.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,7 @@ static inline int get_dynamic_win_info(uint64_t remote_addr, ompi_osc_ucx_module
322322
}
323323

324324
if (mem_rec == NULL) {
325-
if (!mpi_thread_multiple_enabled) {
326-
ep = OSC_UCX_GET_EP(module->mem->comm, target);
327-
}
325+
OSC_UCX_GET_DEFAULT_EP(ep, module->mem->comm, target);
328326
ret = opal_common_ucx_tlocal_fetch_spath(module->mem, target, ep);
329327
if (OPAL_SUCCESS != ret) {
330328
goto cleanup;
@@ -1296,10 +1294,9 @@ static inline int ompi_osc_ucx_acc_rputget(void *stage_addr, int stage_count,
12961294
ompi_osc_ucx_request_t *ucx_req = NULL;
12971295
bool sync_check;
12981296
int ret = OMPI_SUCCESS;
1297+
CHECK_DYNAMIC_WIN(remote_addr, module, target, ret, true);
12991298

13001299
if (acc_type != NONE) {
1301-
CHECK_DYNAMIC_WIN(remote_addr, module, target, ret, true);
1302-
13031300
OMPI_OSC_UCX_REQUEST_ALLOC(win, ucx_req);
13041301
assert(NULL != ucx_req);
13051302
ucx_req->acc.op = op;

0 commit comments

Comments
 (0)