@@ -103,7 +103,7 @@ static void setup_sighandler(int signal, opal_event_t *ev,
103103}
104104
105105
106- int orte_ess_base_orted_setup (char * * hosts )
106+ int orte_ess_base_orted_setup (void )
107107{
108108 int ret = ORTE_ERROR ;
109109 int fd ;
@@ -113,7 +113,6 @@ int orte_ess_base_orted_setup(char **hosts)
113113 orte_job_t * jdata ;
114114 orte_proc_t * proc ;
115115 orte_app_context_t * app ;
116- orte_node_t * node ;
117116 char * param ;
118117 hwloc_obj_t obj ;
119118 unsigned i , j ;
@@ -218,12 +217,9 @@ int orte_ess_base_orted_setup(char **hosts)
218217 * a specific module to use
219218 */
220219 (void ) mca_base_var_env_name ("plm" , & param );
221-
222220 plm_in_use = !!(getenv (param ));
223221 free (param );
224-
225222 if (plm_in_use ) {
226-
227223 if (ORTE_SUCCESS != (ret = mca_base_framework_open (& orte_plm_base_framework , 0 ))) {
228224 ORTE_ERROR_LOG (ret );
229225 error = "orte_plm_base_open" ;
@@ -332,11 +328,6 @@ int orte_ess_base_orted_setup(char **hosts)
332328 app = OBJ_NEW (orte_app_context_t );
333329 opal_pointer_array_set_item (jdata -> apps , 0 , app );
334330 jdata -> num_apps ++ ;
335- /* create and store a node object where we are */
336- node = OBJ_NEW (orte_node_t );
337- node -> name = strdup (orte_process_info .nodename );
338- node -> index = ORTE_PROC_MY_NAME -> vpid ;
339- opal_pointer_array_set_item (orte_node_pool , ORTE_PROC_MY_NAME -> vpid , node );
340331
341332 /* create and store a proc object for us */
342333 proc = OBJ_NEW (orte_proc_t );
@@ -345,19 +336,6 @@ int orte_ess_base_orted_setup(char **hosts)
345336 proc -> pid = orte_process_info .pid ;
346337 proc -> state = ORTE_PROC_STATE_RUNNING ;
347338 opal_pointer_array_set_item (jdata -> procs , proc -> name .vpid , proc );
348- /* record that the daemon (i.e., us) is on this node
349- * NOTE: we do not add the proc object to the node's
350- * proc array because we are not an application proc.
351- * Instead, we record it in the daemon field of the
352- * node object
353- */
354- OBJ_RETAIN (proc ); /* keep accounting straight */
355- node -> daemon = proc ;
356- ORTE_FLAG_SET (node , ORTE_NODE_FLAG_DAEMON_LAUNCHED );
357- node -> state = ORTE_NODE_STATE_UP ;
358- /* now point our proc node field to the node */
359- OBJ_RETAIN (node ); /* keep accounting straight */
360- proc -> node = node ;
361339 /* record that the daemon job is running */
362340 jdata -> num_procs = 1 ;
363341 jdata -> state = ORTE_JOB_STATE_RUNNING ;
@@ -514,7 +492,6 @@ int orte_ess_base_orted_setup(char **hosts)
514492 orte_topo_signature = opal_hwloc_base_get_topo_signature (opal_hwloc_topology );
515493 t -> sig = strdup (orte_topo_signature );
516494 opal_pointer_array_add (orte_node_topologies , t );
517- node -> topology = t ;
518495 if (15 < opal_output_get_verbosity (orte_ess_base_framework .framework_output )) {
519496 opal_output (0 , "%s Topology Info:" , ORTE_NAME_PRINT (ORTE_PROC_MY_NAME ));
520497 opal_dss .dump (0 , opal_hwloc_topology , OPAL_HWLOC_TOPO );
@@ -526,12 +503,25 @@ int orte_ess_base_orted_setup(char **hosts)
526503 * after we enable_comm as that function determines our
527504 * own port, which we need in order to construct the nidmap
528505 */
529- if (NULL != hosts ) {
506+ if (NULL != orte_node_regex ) {
507+ if (ORTE_SUCCESS != (ret = orte_util_nidmap_parse (orte_node_regex ))) {
508+ ORTE_ERROR_LOG (ret );
509+ error = "construct nidmap" ;
510+ goto error ;
511+ }
512+ }
513+
514+ if (orte_static_ports ) {
515+ if (NULL == orte_node_regex ) {
516+ /* we didn't get the node info */
517+ error = "cannot construct daemon map for static ports - no node map info" ;
518+ goto error ;
519+ }
530520 /* extract the node info from the environment and
531521 * build a nidmap from it - this will update the
532522 * routing plan as well
533523 */
534- if (ORTE_SUCCESS != (ret = orte_util_build_daemon_nidmap (hosts ))) {
524+ if (ORTE_SUCCESS != (ret = orte_util_build_daemon_nidmap ())) {
535525 ORTE_ERROR_LOG (ret );
536526 error = "construct daemon map from static ports" ;
537527 goto error ;
@@ -635,6 +625,7 @@ int orte_ess_base_orted_setup(char **hosts)
635625 }
636626
637627 return ORTE_SUCCESS ;
628+
638629 error :
639630 orte_show_help ("help-orte-runtime.txt" ,
640631 "orte_init:startup:internal-failure" ,
0 commit comments