Skip to content

Commit 78d3d9d

Browse files
authored
Merge pull request #10668 from devreal/osc-ucx-rputget-flushnb-main-fixup-5.0.x
Fixup: osc/ucx: implement rput and rget using ucp_worker_flush_nb
2 parents 50ab22e + 9fe00eb commit 78d3d9d

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

ompi/mca/osc/ucx/osc_ucx_comm.c

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,21 +1062,18 @@ int ompi_osc_ucx_rput(const void *origin_addr, int origin_count,
10621062

10631063
CHECK_DYNAMIC_WIN(remote_addr, module, target, ret, true);
10641064

1065-
OMPI_OSC_UCX_REQUEST_ALLOC(win, ucx_req);
1066-
assert(NULL != ucx_req);
1067-
10681065
ret = ompi_osc_ucx_put(origin_addr, origin_count, origin_dt, target, target_disp,
10691066
target_count, target_dt, win);
10701067
if (ret != OMPI_SUCCESS) {
1071-
OMPI_OSC_UCX_REQUEST_RETURN(ucx_req);
10721068
return ret;
10731069
}
10741070

1071+
OMPI_OSC_UCX_REQUEST_ALLOC(win, ucx_req);
1072+
10751073
mca_osc_ucx_component.num_incomplete_req_ops++;
10761074
ret = opal_common_ucx_wpmem_flush_ep_nb(mem, target, req_completion, ucx_req);
10771075

10781076
if (ret != OMPI_SUCCESS) {
1079-
10801077
/* fallback to using an atomic op to acquire a request handle */
10811078
ret = opal_common_ucx_wpmem_fence(mem);
10821079
if (ret != OMPI_SUCCESS) {
@@ -1118,21 +1115,18 @@ int ompi_osc_ucx_rget(void *origin_addr, int origin_count,
11181115

11191116
CHECK_DYNAMIC_WIN(remote_addr, module, target, ret, true);
11201117

1121-
OMPI_OSC_UCX_REQUEST_ALLOC(win, ucx_req);
1122-
assert(NULL != ucx_req);
1123-
11241118
ret = ompi_osc_ucx_get(origin_addr, origin_count, origin_dt, target, target_disp,
11251119
target_count, target_dt, win);
11261120
if (ret != OMPI_SUCCESS) {
1127-
OMPI_OSC_UCX_REQUEST_RETURN(ucx_req);
11281121
return ret;
11291122
}
11301123

1124+
OMPI_OSC_UCX_REQUEST_ALLOC(win, ucx_req);
1125+
11311126
mca_osc_ucx_component.num_incomplete_req_ops++;
11321127
ret = opal_common_ucx_wpmem_flush_ep_nb(mem, target, req_completion, ucx_req);
11331128

11341129
if (ret != OMPI_SUCCESS) {
1135-
11361130
/* fallback to using an atomic op to acquire a request handle */
11371131
ret = opal_common_ucx_wpmem_fence(mem);
11381132
if (ret != OMPI_SUCCESS) {

0 commit comments

Comments
 (0)