@@ -510,77 +510,6 @@ int orte_ess_base_orted_setup(char **hosts)
510
510
goto error ;
511
511
}
512
512
}
513
- /* setup the global job and node arrays */
514
- orte_job_data = OBJ_NEW (opal_pointer_array_t );
515
- if (ORTE_SUCCESS != (ret = opal_pointer_array_init (orte_job_data ,
516
- 1 ,
517
- ORTE_GLOBAL_ARRAY_MAX_SIZE ,
518
- 1 ))) {
519
- ORTE_ERROR_LOG (ret );
520
- error = "setup job array" ;
521
- goto error ;
522
- }
523
- orte_node_pool = OBJ_NEW (opal_pointer_array_t );
524
- if (ORTE_SUCCESS != (ret = opal_pointer_array_init (orte_node_pool ,
525
- ORTE_GLOBAL_ARRAY_BLOCK_SIZE ,
526
- ORTE_GLOBAL_ARRAY_MAX_SIZE ,
527
- ORTE_GLOBAL_ARRAY_BLOCK_SIZE ))) {
528
- ORTE_ERROR_LOG (ret );
529
- error = "setup node array" ;
530
- goto error ;
531
- }
532
- orte_node_topologies = OBJ_NEW (opal_pointer_array_t );
533
- if (ORTE_SUCCESS != (ret = opal_pointer_array_init (orte_node_topologies ,
534
- ORTE_GLOBAL_ARRAY_BLOCK_SIZE ,
535
- ORTE_GLOBAL_ARRAY_MAX_SIZE ,
536
- ORTE_GLOBAL_ARRAY_BLOCK_SIZE ))) {
537
- ORTE_ERROR_LOG (ret );
538
- error = "setup node topologies array" ;
539
- goto error ;
540
- }
541
- /* Setup the job data object for the daemons */
542
- /* create and store the job data object */
543
- jdata = OBJ_NEW (orte_job_t );
544
- jdata -> jobid = ORTE_PROC_MY_NAME -> jobid ;
545
- opal_pointer_array_set_item (orte_job_data , 0 , jdata );
546
- /* every job requires at least one app */
547
- app = OBJ_NEW (orte_app_context_t );
548
- opal_pointer_array_set_item (jdata -> apps , 0 , app );
549
- jdata -> num_apps ++ ;
550
- /* create and store a node object where we are */
551
- node = OBJ_NEW (orte_node_t );
552
- node -> name = strdup (orte_process_info .nodename );
553
- node -> index = opal_pointer_array_set_item (orte_node_pool , ORTE_PROC_MY_NAME -> vpid , node );
554
- /* point our topology to the one detected locally */
555
- node -> topology = opal_hwloc_topology ;
556
-
557
- /* create and store a proc object for us */
558
- proc = OBJ_NEW (orte_proc_t );
559
- proc -> name .jobid = ORTE_PROC_MY_NAME -> jobid ;
560
- proc -> name .vpid = ORTE_PROC_MY_NAME -> vpid ;
561
- proc -> pid = orte_process_info .pid ;
562
- proc -> rml_uri = orte_rml .get_contact_info ();
563
- proc -> state = ORTE_PROC_STATE_RUNNING ;
564
- opal_pointer_array_set_item (jdata -> procs , proc -> name .vpid , proc );
565
- /* record that the daemon (i.e., us) is on this node
566
- * NOTE: we do not add the proc object to the node's
567
- * proc array because we are not an application proc.
568
- * Instead, we record it in the daemon field of the
569
- * node object
570
- */
571
- OBJ_RETAIN (proc ); /* keep accounting straight */
572
- node -> daemon = proc ;
573
- ORTE_FLAG_SET (node , ORTE_NODE_FLAG_DAEMON_LAUNCHED );
574
- node -> state = ORTE_NODE_STATE_UP ;
575
- /* now point our proc node field to the node */
576
- OBJ_RETAIN (node ); /* keep accounting straight */
577
- proc -> node = node ;
578
- /* record that the daemon job is running */
579
- jdata -> num_procs = 1 ;
580
- jdata -> state = ORTE_JOB_STATE_RUNNING ;
581
- /* obviously, we have "reported" */
582
- jdata -> num_reported = 1 ;
583
-
584
513
/* setup the PMIx framework - ensure it skips all non-PMIx components,
585
514
* but do not override anything we were given */
586
515
opal_setenv ("OMPI_MCA_pmix" , "^s1,s2,cray" , false, & environ );
0 commit comments