-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix rma_reg; add UCX_SAFECALL; fix endpoint_fina
- Loading branch information
Showing
5 changed files
with
228 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#ifndef LCI_LCISI_UCX_DETAIL_H | ||
#define LCI_LCISI_UCX_DETAIL_H | ||
|
||
#include <ucp/api/ucp.h> | ||
|
||
// Borrowed from UCX library | ||
static ucs_status_t LCISI_wait_status_ptr(ucp_worker_h worker, | ||
ucs_status_ptr_t status_ptr) | ||
{ | ||
ucs_status_t status; | ||
|
||
if (status_ptr == NULL) { | ||
status = UCS_OK; | ||
} else if (UCS_PTR_IS_PTR(status_ptr)) { | ||
do { | ||
ucp_worker_progress(worker); | ||
status = ucp_request_test(status_ptr, NULL); | ||
} while (status == UCS_INPROGRESS); | ||
ucp_request_release(status_ptr); | ||
} else { | ||
status = UCS_PTR_STATUS(status_ptr); | ||
} | ||
|
||
return status; | ||
} | ||
|
||
#endif // LCI_LCISI_UCX_DETAIL_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.