Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions opal/mca/btl/openib/btl_openib_component.c
Original file line number Diff line number Diff line change
Expand Up @@ -2184,29 +2184,13 @@ static int init_one_device(opal_list_t *btl_list, struct ibv_device* ib_dev)
}

error:
#if OPAL_ENABLE_PROGRESS_THREADS
if (device->ib_channel) {
ibv_destroy_comp_channel(device->ib_channel);
}
#endif
if (device->mpool) {
mca_mpool_base_module_destroy(device->mpool);
}

if (device->ib_pd) {
ibv_dealloc_pd(device->ib_pd);
}

if (OPAL_SUCCESS != ret) {
opal_show_help("help-mpi-btl-openib.txt",
"error in device init", true,
opal_process_info.nodename,
ibv_get_device_name(device->ib_dev));
}

if (device->ib_dev_context) {
ibv_close_device(device->ib_dev_context);
}
if (NULL != allowed_ports) {
free(allowed_ports);
}
Expand Down