@@ -1066,7 +1066,7 @@ int ompi_osc_ucx_rput(const void *origin_addr, int origin_count,
1066
1066
struct ompi_win_t * win , struct ompi_request_t * * request ) {
1067
1067
ompi_osc_ucx_module_t * module = (ompi_osc_ucx_module_t * ) win -> w_osc_module ;
1068
1068
opal_common_ucx_wpmem_t * mem = module -> mem ;
1069
- uint64_t remote_addr = (module -> addrs [target ]) + target_disp * OSC_UCX_GET_DISP ( module , target ) ;
1069
+ uint64_t remote_addr = (module -> state_addrs [target ]) + OSC_UCX_STATE_REQ_FLAG_OFFSET ;
1070
1070
ompi_osc_ucx_request_t * ucx_req = NULL ;
1071
1071
int ret = OMPI_SUCCESS , win_idx = -1 ;
1072
1072
@@ -1100,7 +1100,7 @@ int ompi_osc_ucx_rput(const void *origin_addr, int origin_count,
1100
1100
1101
1101
mca_osc_ucx_component .num_incomplete_req_ops ++ ;
1102
1102
/* TODO: investigate whether ucp_worker_flush_nb is a better choice here */
1103
- ret = opal_common_ucx_wpmem_fetch_nb (mem , UCP_ATOMIC_FETCH_OP_FADD ,
1103
+ ret = opal_common_ucx_wpmem_fetch_nb (module -> state_mem , UCP_ATOMIC_FETCH_OP_FADD ,
1104
1104
0 , target , & (module -> req_result ),
1105
1105
sizeof (uint64_t ), remote_addr & (~0x7 ),
1106
1106
req_completion , ucx_req );
@@ -1121,7 +1121,7 @@ int ompi_osc_ucx_rget(void *origin_addr, int origin_count,
1121
1121
struct ompi_request_t * * request ) {
1122
1122
ompi_osc_ucx_module_t * module = (ompi_osc_ucx_module_t * ) win -> w_osc_module ;
1123
1123
opal_common_ucx_wpmem_t * mem = module -> mem ;
1124
- uint64_t remote_addr = (module -> addrs [target ]) + target_disp * OSC_UCX_GET_DISP ( module , target ) ;
1124
+ uint64_t remote_addr = (module -> state_addrs [target ]) + OSC_UCX_STATE_REQ_FLAG_OFFSET ;
1125
1125
ompi_osc_ucx_request_t * ucx_req = NULL ;
1126
1126
int ret = OMPI_SUCCESS , win_idx = -1 ;
1127
1127
@@ -1155,7 +1155,7 @@ int ompi_osc_ucx_rget(void *origin_addr, int origin_count,
1155
1155
1156
1156
mca_osc_ucx_component .num_incomplete_req_ops ++ ;
1157
1157
/* TODO: investigate whether ucp_worker_flush_nb is a better choice here */
1158
- ret = opal_common_ucx_wpmem_fetch_nb (mem , UCP_ATOMIC_FETCH_OP_FADD ,
1158
+ ret = opal_common_ucx_wpmem_fetch_nb (module -> state_mem , UCP_ATOMIC_FETCH_OP_FADD ,
1159
1159
0 , target , & (module -> req_result ),
1160
1160
sizeof (uint64_t ), remote_addr & (~0x7 ),
1161
1161
req_completion , ucx_req );
0 commit comments