From 2c896c5a2d51fc2348cf95015005b7f8baa8fc83 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Sat, 11 Jul 2015 10:43:11 -0700 Subject: [PATCH] Default allocated nodes to the UP state --- orte/mca/ras/alps/ras_alps_module.c | 2 ++ orte/mca/ras/lsf/ras_lsf_module.c | 1 + orte/mca/ras/tm/ras_tm_module.c | 1 + 3 files changed, 4 insertions(+) diff --git a/orte/mca/ras/alps/ras_alps_module.c b/orte/mca/ras/alps/ras_alps_module.c index 21f5602614..012a9a809c 100644 --- a/orte/mca/ras/alps/ras_alps_module.c +++ b/orte/mca/ras/alps/ras_alps_module.c @@ -543,6 +543,7 @@ orte_ras_alps_read_appinfo_file(opal_list_t *nodes, char *filename, node->slots_inuse = 0; node->slots_max = 0; node->slots = 1; + node->state = ORTE_NODE_STATE_UP; /* need to order these node ids so the regex generator * can properly function */ @@ -579,6 +580,7 @@ orte_ras_alps_read_appinfo_file(opal_list_t *nodes, char *filename, node->slots_inuse = 0; node->slots_max = 0; node->slots = apNodes[ix].numPEs; + node->state = ORTE_NODE_STATE_UP; /* need to order these node ids so the regex generator * can properly function */ diff --git a/orte/mca/ras/lsf/ras_lsf_module.c b/orte/mca/ras/lsf/ras_lsf_module.c index bab7fa0bdb..8447799477 100644 --- a/orte/mca/ras/lsf/ras_lsf_module.c +++ b/orte/mca/ras/lsf/ras_lsf_module.c @@ -107,6 +107,7 @@ static int allocate(orte_job_t *jdata, opal_list_t *nodes) node->slots_inuse = 0; node->slots_max = 0; node->slots = 1; + node->state = ORTE_NODE_STATE_UP; opal_list_append(nodes, &node->super); } diff --git a/orte/mca/ras/tm/ras_tm_module.c b/orte/mca/ras/tm/ras_tm_module.c index e58fdd4427..4daed28a49 100644 --- a/orte/mca/ras/tm/ras_tm_module.c +++ b/orte/mca/ras/tm/ras_tm_module.c @@ -212,6 +212,7 @@ static int discover(opal_list_t* nodelist, char *pbs_jobid) node->slots_inuse = 0; node->slots_max = 0; node->slots = ppn; + node->state = ORTE_NODE_STATE_UP; opal_list_append(nodelist, &node->super); } else {