If the MX driver was unable to load correctly, or if the endpoint was not
created then don't try to call the MX endpoint close function. This commit was SVN r12950.
Этот коммит содержится в:
родитель
6cb2377015
Коммит
d8dee3a740
@ -95,6 +95,7 @@ int mca_btl_mx_del_procs( struct mca_btl_base_module_t* btl,
|
||||
struct ompi_proc_t** procs,
|
||||
struct mca_btl_base_endpoint_t** peers )
|
||||
{
|
||||
opal_output( 0, "MX BTL delete procs\n" );
|
||||
/* TODO */
|
||||
return OMPI_SUCCESS;
|
||||
}
|
||||
@ -467,7 +468,8 @@ int mca_btl_mx_finalize( struct mca_btl_base_module_t* btl )
|
||||
{
|
||||
mca_btl_mx_module_t* mx_btl = (mca_btl_mx_module_t*) btl;
|
||||
|
||||
mx_close_endpoint(mx_btl->mx_endpoint);
|
||||
if( NULL != mx_btl->mx_endpoint )
|
||||
mx_close_endpoint(mx_btl->mx_endpoint);
|
||||
|
||||
OBJ_DESTRUCT( &mx_btl->mx_lock );
|
||||
OBJ_DESTRUCT( &mx_btl->mx_peers );
|
||||
|
@ -249,6 +249,7 @@ static mca_btl_mx_module_t* mca_btl_mx_create(uint64_t addr)
|
||||
if(status != MX_SUCCESS) {
|
||||
opal_output( 0, "mca_btl_mx_init: mx_open_endpoint() failed with status %d (%s)\n",
|
||||
status, mx_strerror(status) );
|
||||
mx_btl->mx_endpoint = NULL;
|
||||
mca_btl_mx_finalize( &mx_btl->super );
|
||||
return NULL;
|
||||
}
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user