File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 5
5
* Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
6
6
* Copyright (c) 2015 Los Alamos National Security, LLC. All rights
7
7
* reserved.
8
+ * Copyright (c) 2016 Research Organization for Information Science
9
+ * and Technology (RIST). All rights reserved.
8
10
* $COPYRIGHT$
9
11
*
10
12
* Additional copyrights may follow
@@ -97,13 +99,23 @@ static int mca_pml_v_component_register(void)
97
99
98
100
static int mca_pml_v_component_open (void )
99
101
{
102
+ int rc ;
100
103
pml_v_output_open (ompi_pml_v_output , ompi_pml_v_verbose );
101
104
102
105
V_OUTPUT_VERBOSE (500 , "loaded" );
103
106
104
107
mca_vprotocol_base_set_include_list (ompi_pml_vprotocol_include_list );
105
108
106
- return mca_base_framework_open (& ompi_vprotocol_base_framework , 0 );
109
+ if (OMPI_SUCCESS != (rc = mca_base_framework_open (& ompi_vprotocol_base_framework , 0 ))) {
110
+ return rc ;
111
+ }
112
+
113
+ if ( NULL == mca_vprotocol_base_include_list ) {
114
+ pml_v_output_close ();
115
+ return mca_base_framework_close (& ompi_vprotocol_base_framework );
116
+ }
117
+
118
+ return rc ;
107
119
}
108
120
109
121
static int mca_pml_v_component_close (void )
You can’t perform that action at this time.
0 commit comments