forked from open-mpi/ompi
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ompi/osc/ucx: move osc ucx internal req to common ucx directory.
Signed-off-by: Xin Zhao <[email protected]>
- Loading branch information
Showing
12 changed files
with
83 additions
and
65 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
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
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
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 |
---|---|---|
|
@@ -15,5 +15,6 @@ | |
|
||
#include "common_ucx_int.h" | ||
#include "common_ucx_wpool.h" | ||
#include "common_ucx_request.h" | ||
|
||
#endif |
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,17 @@ | ||
#include "common_ucx_request.h" | ||
|
||
OPAL_DECLSPEC void | ||
opal_common_ucx_req_init(void *request) { | ||
opal_common_ucx_request_t *req = (opal_common_ucx_request_t *)request; | ||
req->ext_req = NULL; | ||
req->ext_cb = NULL; | ||
} | ||
|
||
OPAL_DECLSPEC void | ||
opal_common_ucx_req_completion(void *request, ucs_status_t status) { | ||
opal_common_ucx_request_t *req = (opal_common_ucx_request_t *)request; | ||
if (req->ext_cb != NULL) { | ||
(*req->ext_cb)(req->ext_req); | ||
} | ||
ucp_request_release(req); | ||
} |
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,17 @@ | ||
#ifndef COMMON_UCX_REQUEST_H | ||
#define COMMON_UCX_REQUEST_H | ||
|
||
#include "opal_config.h" | ||
#include <ucp/api/ucp.h> | ||
|
||
typedef void (*opal_common_ucx_user_req_handler_t)(void *request); | ||
|
||
typedef struct { | ||
void *ext_req; | ||
opal_common_ucx_user_req_handler_t ext_cb; | ||
} opal_common_ucx_request_t; | ||
|
||
OPAL_DECLSPEC void opal_common_ucx_req_init(void *request); | ||
OPAL_DECLSPEC void opal_common_ucx_req_completion(void *request, ucs_status_t status); | ||
|
||
#endif // COMMON_UCX_REQUEST_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
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