@@ -1062,15 +1062,14 @@ 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 ) {
10711068 return ret ;
10721069 }
10731070
1071+ OMPI_OSC_UCX_REQUEST_ALLOC (win , ucx_req );
1072+
10741073 mca_osc_ucx_component .num_incomplete_req_ops ++ ;
10751074 ret = opal_common_ucx_wpmem_flush_ep_nb (mem , target , req_completion , ucx_req );
10761075
@@ -1079,6 +1078,7 @@ int ompi_osc_ucx_rput(const void *origin_addr, int origin_count,
10791078 ret = opal_common_ucx_wpmem_fence (mem );
10801079 if (ret != OMPI_SUCCESS ) {
10811080 OSC_UCX_VERBOSE (1 , "opal_common_ucx_mem_fence failed: %d" , ret );
1081+ OMPI_OSC_UCX_REQUEST_RETURN (ucx_req );
10821082 return OMPI_ERROR ;
10831083 }
10841084
@@ -1115,15 +1115,14 @@ int ompi_osc_ucx_rget(void *origin_addr, int origin_count,
11151115
11161116 CHECK_DYNAMIC_WIN (remote_addr , module , target , ret , true);
11171117
1118- OMPI_OSC_UCX_REQUEST_ALLOC (win , ucx_req );
1119- assert (NULL != ucx_req );
1120-
11211118 ret = ompi_osc_ucx_get (origin_addr , origin_count , origin_dt , target , target_disp ,
11221119 target_count , target_dt , win );
11231120 if (ret != OMPI_SUCCESS ) {
11241121 return ret ;
11251122 }
11261123
1124+ OMPI_OSC_UCX_REQUEST_ALLOC (win , ucx_req );
1125+
11271126 mca_osc_ucx_component .num_incomplete_req_ops ++ ;
11281127 ret = opal_common_ucx_wpmem_flush_ep_nb (mem , target , req_completion , ucx_req );
11291128
@@ -1132,6 +1131,7 @@ int ompi_osc_ucx_rget(void *origin_addr, int origin_count,
11321131 ret = opal_common_ucx_wpmem_fence (mem );
11331132 if (ret != OMPI_SUCCESS ) {
11341133 OSC_UCX_VERBOSE (1 , "opal_common_ucx_mem_fence failed: %d" , ret );
1134+ OMPI_OSC_UCX_REQUEST_RETURN (ucx_req );
11351135 return OMPI_ERROR ;
11361136 }
11371137
0 commit comments