@@ -1062,15 +1062,14 @@ int ompi_osc_ucx_rput(const void *origin_addr, int origin_count,
1062
1062
1063
1063
CHECK_DYNAMIC_WIN (remote_addr , module , target , ret , true);
1064
1064
1065
- OMPI_OSC_UCX_REQUEST_ALLOC (win , ucx_req );
1066
- assert (NULL != ucx_req );
1067
-
1068
1065
ret = ompi_osc_ucx_put (origin_addr , origin_count , origin_dt , target , target_disp ,
1069
1066
target_count , target_dt , win );
1070
1067
if (ret != OMPI_SUCCESS ) {
1071
1068
return ret ;
1072
1069
}
1073
1070
1071
+ OMPI_OSC_UCX_REQUEST_ALLOC (win , ucx_req );
1072
+
1074
1073
mca_osc_ucx_component .num_incomplete_req_ops ++ ;
1075
1074
ret = opal_common_ucx_wpmem_flush_ep_nb (mem , target , req_completion , ucx_req );
1076
1075
@@ -1079,6 +1078,7 @@ int ompi_osc_ucx_rput(const void *origin_addr, int origin_count,
1079
1078
ret = opal_common_ucx_wpmem_fence (mem );
1080
1079
if (ret != OMPI_SUCCESS ) {
1081
1080
OSC_UCX_VERBOSE (1 , "opal_common_ucx_mem_fence failed: %d" , ret );
1081
+ OMPI_OSC_UCX_REQUEST_RETURN (ucx_req );
1082
1082
return OMPI_ERROR ;
1083
1083
}
1084
1084
@@ -1115,15 +1115,14 @@ int ompi_osc_ucx_rget(void *origin_addr, int origin_count,
1115
1115
1116
1116
CHECK_DYNAMIC_WIN (remote_addr , module , target , ret , true);
1117
1117
1118
- OMPI_OSC_UCX_REQUEST_ALLOC (win , ucx_req );
1119
- assert (NULL != ucx_req );
1120
-
1121
1118
ret = ompi_osc_ucx_get (origin_addr , origin_count , origin_dt , target , target_disp ,
1122
1119
target_count , target_dt , win );
1123
1120
if (ret != OMPI_SUCCESS ) {
1124
1121
return ret ;
1125
1122
}
1126
1123
1124
+ OMPI_OSC_UCX_REQUEST_ALLOC (win , ucx_req );
1125
+
1127
1126
mca_osc_ucx_component .num_incomplete_req_ops ++ ;
1128
1127
ret = opal_common_ucx_wpmem_flush_ep_nb (mem , target , req_completion , ucx_req );
1129
1128
@@ -1132,6 +1131,7 @@ int ompi_osc_ucx_rget(void *origin_addr, int origin_count,
1132
1131
ret = opal_common_ucx_wpmem_fence (mem );
1133
1132
if (ret != OMPI_SUCCESS ) {
1134
1133
OSC_UCX_VERBOSE (1 , "opal_common_ucx_mem_fence failed: %d" , ret );
1134
+ OMPI_OSC_UCX_REQUEST_RETURN (ucx_req );
1135
1135
return OMPI_ERROR ;
1136
1136
}
1137
1137
0 commit comments