Skip to content

Commit 1010366

Browse files
xinzhao3artpol84
authored andcommitted
opal/common/ucx: Fix the bug in wpool's periodical flush
Signed-off-by: Artem Polyakov <artpol84@gmail.com>
1 parent bcb52ec commit 1010366

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

opal/mca/common/ucx/common_ucx_wpool.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1243,7 +1243,9 @@ opal_common_ucx_winfo_flush(opal_common_ucx_winfo_t *winfo, int target,
12431243
} else {
12441244
req = ucp_worker_flush_nb(winfo->worker, 0, opal_common_ucx_empty_complete_cb);
12451245
}
1246-
((opal_common_ucx_request_t *)req)->winfo = winfo;
1246+
if (UCS_PTR_IS_PTR(req)) {
1247+
((opal_common_ucx_request_t *)req)->winfo = winfo;
1248+
}
12471249

12481250
if(OPAL_COMMON_UCX_FLUSH_B) {
12491251
rc = opal_common_ucx_wait_request_mt(req, "ucp_ep_flush_nb");

0 commit comments

Comments
 (0)