static int mlxm_fabric_close(fid_t fid) { mlxm_mq_storage_fini(); mxm_ep_powerdown(mlxm_globals.mxm_ep); mxm_ep_destroy(mlxm_globals.mxm_ep); mxm_cleanup(mlxm_globals.mxm_context); free(fid); return 0; }
int mca_pml_yalla_close(void) { PML_YALLA_VERBOSE(1, "mca_pml_yalla_close"); if (ompi_pml_yalla.ctx_opts != NULL) { mxm_config_free_context_opts(ompi_pml_yalla.ctx_opts); } if (ompi_pml_yalla.ep_opts != NULL) { mxm_config_free_ep_opts(ompi_pml_yalla.ep_opts); } if (ompi_pml_yalla.mxm_context != NULL) { mxm_cleanup(ompi_pml_yalla.mxm_context); ompi_pml_yalla.mxm_context = NULL; } return 0; }
int mca_pml_yalla_cleanup(void) { PML_YALLA_VERBOSE(1, "mca_pml_yalla_cleanup"); opal_progress_unregister(mca_pml_yalla_progress); OBJ_DESTRUCT(&ompi_pml_yalla.convs); OBJ_DESTRUCT(&ompi_pml_yalla.recv_reqs); OBJ_DESTRUCT(&ompi_pml_yalla.bsend_reqs); OBJ_DESTRUCT(&ompi_pml_yalla.send_reqs); if (ompi_pml_yalla.mxm_ep) { mxm_ep_destroy(ompi_pml_yalla.mxm_ep); ompi_pml_yalla.mxm_ep = NULL; } if (ompi_pml_yalla.using_mem_hooks) { opal_mem_hooks_unregister_release(mca_pml_yalla_mem_release_cb); } if (ompi_pml_yalla.mxm_context) { mxm_cleanup(ompi_pml_yalla.mxm_context); ompi_pml_yalla.mxm_context = NULL; } return OMPI_SUCCESS; }