@@ -155,14 +155,7 @@ void opal_common_ucx_mca_proc_added(void)
155155
156156OPAL_DECLSPEC int opal_common_ucx_mca_pmix_fence_nb (int * fenced )
157157{
158- int ret = OPAL_SUCCESS ;
159-
160- if (OPAL_SUCCESS != (ret = opal_pmix .fence_nb (NULL , 0 ,
161- opal_common_ucx_mca_fence_complete_cb , (void * )fenced ))){
162- return ret ;
163- }
164-
165- return ret ;
158+ return opal_pmix .fence_nb (NULL , 0 , opal_common_ucx_mca_fence_complete_cb , (void * ) fenced );
166159}
167160
168161OPAL_DECLSPEC int opal_common_ucx_mca_pmix_fence (ucp_worker_h worker )
@@ -194,7 +187,7 @@ static void opal_common_ucx_wait_all_requests(void **reqs, int count, ucp_worker
194187 }
195188}
196189
197- OPAL_DECLSPEC int opal_common_ucx_del_procs_nb (opal_common_ucx_del_proc_t * procs , size_t count ,
190+ OPAL_DECLSPEC int opal_common_ucx_del_procs_nofence (opal_common_ucx_del_proc_t * procs , size_t count ,
198191 size_t my_rank , size_t max_disconnect , ucp_worker_h worker ) {
199192 size_t num_reqs ;
200193 size_t max_reqs ;
@@ -249,12 +242,8 @@ OPAL_DECLSPEC int opal_common_ucx_del_procs_nb(opal_common_ucx_del_proc_t *procs
249242OPAL_DECLSPEC int opal_common_ucx_del_procs (opal_common_ucx_del_proc_t * procs , size_t count ,
250243 size_t my_rank , size_t max_disconnect , ucp_worker_h worker )
251244{
252- int ret = OPAL_SUCCESS ;
253- opal_common_ucx_del_procs_nb (procs , count , my_rank , max_disconnect , worker );
254- if (OPAL_SUCCESS != (ret = opal_common_ucx_mca_pmix_fence (worker ))) {
255- return ret ;
256- }
245+ opal_common_ucx_del_procs_nofence (procs , count , my_rank , max_disconnect , worker );
257246
258- return OPAL_SUCCESS ;
247+ return opal_common_ucx_mca_pmix_fence ( worker ) ;
259248}
260249
0 commit comments