1
1

Resolve the case where only the HNP is in the system (i.e., single-node operation)

This commit was SVN r26382.
Этот коммит содержится в:
Ralph Castain 2012-05-03 18:00:01 +00:00
родитель c352ca36c2
Коммит 45fee2b491
2 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -481,6 +481,11 @@ static int rte_init(void)
jdata = OBJ_NEW(orte_job_t);
jdata->jobid = ORTE_PROC_MY_NAME->jobid;
opal_pointer_array_set_item(orte_job_data, 0, jdata);
/* mark that the daemons have reported as we are the
* only ones in the system right now, and we definitely
* are running!
*/
jdata->state = ORTE_JOB_STATE_DAEMONS_REPORTED;
/* every job requires at least one app */
app = OBJ_NEW(orte_app_context_t);

Просмотреть файл

@ -1074,6 +1074,8 @@ int orte_plm_base_setup_virtual_machine(orte_job_t *jdata)
"%s plm:base:setup_vm only HNP in allocation",
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME)));
OBJ_DESTRUCT(&nodes);
/* mark that the daemons have reported so we can proceed */
daemons->state = ORTE_JOB_STATE_DAEMONS_REPORTED;
return ORTE_SUCCESS;
}