Skip to content

Commit 0555d3b

Browse files
authored
Merge pull request #25 from 23-Wzz/huawei
Delete Chenge's MR
2 parents 5019a61 + f242dc3 commit 0555d3b

File tree

6 files changed

+576
-665
lines changed

6 files changed

+576
-665
lines changed

ompi/mca/coll/ucx/coll_ucx.h

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,8 @@ typedef struct mca_coll_ucx_component {
6060
bool enable_topo_map;
6161

6262
/* UCX global objects */
63-
ucp_context_h ucp_context;
64-
ucp_worker_h ucp_worker;
6563
ucg_context_h ucg_context;
66-
ucg_group_h ucg_group;
64+
ucg_worker_h ucg_worker;
6765
int output;
6866
ucs_list_link_t group_head;
6967
char **topo_map;
@@ -94,16 +92,37 @@ typedef struct mca_coll_ucx_module {
9492
} mca_coll_ucx_module_t;
9593
OBJ_CLASS_DECLARATION(mca_coll_ucx_module_t);
9694

95+
/*
96+
* Component-oriented functions for using UCX collectives.
97+
*/
98+
int mca_coll_ucx_open(void);
99+
int mca_coll_ucx_close(void);
100+
int mca_coll_ucx_init(void);
101+
void mca_coll_ucx_cleanup(void);
102+
int mca_coll_ucx_enable(bool enable);
103+
int mca_coll_ucx_progress(void);
104+
97105
/*
98106
* TESTING PURPOSES: get the worker from the module.
99107
*/
100-
ucp_worker_h mca_coll_ucx_get_component_worker(void);
108+
ucg_worker_h mca_coll_ucx_get_component_worker(void);
101109

102110
/*
103111
* Start persistent collectives from an array of requests.
104112
*/
105113
int mca_coll_ucx_start(size_t count, ompi_request_t** requests);
106114

115+
/*
116+
* Obtain the address for a remote node.
117+
*/
118+
ucs_status_t mca_coll_ucx_resolve_address(void *cb_group_obj, ucg_group_member_index_t idx, ucg_address_t **addr,
119+
size_t *addr_len);
120+
121+
/*
122+
* Release an obtained address for a remote node.
123+
*/
124+
void mca_coll_ucx_release_address(ucg_address_t *addr);
125+
107126
/*
108127
* The collective operations themselves.
109128
*/

0 commit comments

Comments
 (0)