-
Notifications
You must be signed in to change notification settings - Fork 423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes for endpoint flush #3054
Fixes for endpoint flush #3054
Conversation
Test FAILed. |
Test FAILed. |
0924607
to
caa545e
Compare
Test PASSed. |
Test FAILed. |
We must not update cached tail in uct_mm_ep_flush() if there are any pending elements. We may get new send resources but not use them, so flush could return UCS_OK while there pending requests. Fixes openucx#3052
- Ignore remote completions in case of forced flush (CLOSE_MODE_CANCEL) - The UCP_EP_FLAG_FLUSH_STATE_VALID flag can't be used because it's not valid in release mode. Instead, use the UCP_EP_FLAG_DEST_EP flag as an indirect indication that we may have some operations which wait for software rma/amo completion. - Fix missing initializion of flush state in case of client/server connection establishment with p2p lanes and *without* pre-request.
caa545e
to
3592e83
Compare
Test PASSed. |
Test FAILed. |
Test PASSed. |
@brminich @evgeny-leksikov pls take a look |
src/ucp/rma/flush.c
Outdated
ucs_queue_push(&flush_state->reqs, &req->send.flush.queue); | ||
ucs_trace_req("added flush request %p to ep remote completion queue" | ||
" with sn %d", req, req->send.flush.cmpl_sn); | ||
/* All pending requires were sent, so 'send_sn' value is up-to-date */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: requires->requests
Test PASSed. |
Test FAILed. |
Test FAILed. |
Test FAILed. |
Test FAILed. |
Test PASSed. |
No description provided.