@@ -77,6 +77,7 @@ int orte_ess_base_app_setup(bool db_restrict_local)
77
77
{
78
78
int ret ;
79
79
char * error = NULL ;
80
+ opal_list_t transports ;
80
81
81
82
/*
82
83
* stdout/stderr buffering
@@ -188,6 +189,26 @@ int orte_ess_base_app_setup(bool db_restrict_local)
188
189
error = "orte_routed_base_select" ;
189
190
goto error ;
190
191
}
192
+ /* setup the routed info */
193
+ if (ORTE_SUCCESS != (ret = orte_routed .init_routes (NULL , ORTE_PROC_MY_NAME -> jobid , NULL ))) {
194
+ ORTE_ERROR_LOG (ret );
195
+ error = "orte_routed.init_routes" ;
196
+ goto error ;
197
+ }
198
+
199
+ /* get a conduit for our use - we never route IO over fabric */
200
+ OBJ_CONSTRUCT (& transports , opal_list_t );
201
+ orte_set_attribute (& transports , ORTE_RML_TRANSPORT_TYPE ,
202
+ ORTE_ATTR_LOCAL , orte_mgmt_transport , OPAL_STRING );
203
+ orte_mgmt_conduit = orte_rml .open_conduit (& transports );
204
+ OPAL_LIST_DESTRUCT (& transports );
205
+
206
+ OBJ_CONSTRUCT (& transports , opal_list_t );
207
+ orte_set_attribute (& transports , ORTE_RML_TRANSPORT_TYPE ,
208
+ ORTE_ATTR_LOCAL , orte_coll_transport , OPAL_STRING );
209
+ orte_coll_conduit = orte_rml .open_conduit (& transports );
210
+ OPAL_LIST_DESTRUCT (& transports );
211
+
191
212
/*
192
213
* Group communications
193
214
*/
@@ -201,12 +222,7 @@ int orte_ess_base_app_setup(bool db_restrict_local)
201
222
error = "orte_grpcomm_base_select" ;
202
223
goto error ;
203
224
}
204
- /* setup the routed info */
205
- if (ORTE_SUCCESS != (ret = orte_routed .init_routes (NULL , ORTE_PROC_MY_NAME -> jobid , NULL ))) {
206
- ORTE_ERROR_LOG (ret );
207
- error = "orte_routed.init_routes" ;
208
- goto error ;
209
- }
225
+
210
226
#if OPAL_ENABLE_FT_CR == 1
211
227
/*
212
228
* Setup the SnapC
@@ -273,6 +289,10 @@ int orte_ess_base_app_finalize(void)
273
289
(void ) mca_base_framework_close (& orte_sstore_base_framework );
274
290
#endif
275
291
292
+ /* release the conduits */
293
+ orte_rml .close_conduit (orte_mgmt_conduit );
294
+ orte_rml .close_conduit (orte_coll_conduit );
295
+
276
296
/* close frameworks */
277
297
(void ) mca_base_framework_close (& orte_filem_base_framework );
278
298
(void ) mca_base_framework_close (& orte_errmgr_base_framework );
0 commit comments