Skip to content

Commit b2e3b12

Browse files
committed
OSHMEM/MCA/SPML/UCX:added missing opal_common_ucx_mca_deregister call at component_close, moved mca_register to component_open
Signed-off-by: Roie Danino <rdanino@nvidia.com>
1 parent 241181b commit b2e3b12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

oshmem/mca/spml/ucx/spml_ucx_component.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,11 +244,13 @@ void mca_spml_ucx_async_cb(int fd, short event, void *cbdata)
244244

245245
static int mca_spml_ucx_component_open(void)
246246
{
247+
opal_common_ucx_mca_register();
247248
return OSHMEM_SUCCESS;
248249
}
249250

250251
static int mca_spml_ucx_component_close(void)
251252
{
253+
opal_common_ucx_mca_deregister();
252254
return OSHMEM_SUCCESS;
253255
}
254256

@@ -267,8 +269,6 @@ static int spml_ucx_init(void)
267269
return OSHMEM_ERROR;
268270
}
269271

270-
opal_common_ucx_mca_register();
271-
272272
memset(&params, 0, sizeof(params));
273273
params.field_mask = UCP_PARAM_FIELD_FEATURES |
274274
UCP_PARAM_FIELD_ESTIMATED_NUM_EPS |

0 commit comments

Comments
 (0)