From d7283807410c1d37d966180847debe1d43361e92 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Mon, 17 Dec 2018 16:13:55 -0800 Subject: [PATCH] If job is fully described, there will be no ppn string to unpack Signed-off-by: Ralph Castain --- orte/mca/odls/base/odls_base_default_fns.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/orte/mca/odls/base/odls_base_default_fns.c b/orte/mca/odls/base/odls_base_default_fns.c index 75d524ae43..8057f3dca7 100644 --- a/orte/mca/odls/base/odls_base_default_fns.c +++ b/orte/mca/odls/base/odls_base_default_fns.c @@ -619,17 +619,17 @@ int orte_odls_base_default_construct_child_list(opal_buffer_t *buffer, } } - /* extract the ppn regex */ - cnt = 1; - if (OPAL_SUCCESS != (rc = opal_dss.unpack(buffer, &ppn, &cnt, OPAL_STRING))) { - ORTE_ERROR_LOG(rc); - goto REPORT_ERROR; - } - /* if the job is fully described, then mpirun will have computed * and sent us the complete array of procs in the orte_job_t, so we * don't need to do anything more here */ if (!orte_get_attribute(&jdata->attributes, ORTE_JOB_FULLY_DESCRIBED, NULL, OPAL_BOOL)) { + /* extract the ppn regex */ + cnt = 1; + if (OPAL_SUCCESS != (rc = opal_dss.unpack(buffer, &ppn, &cnt, OPAL_STRING))) { + ORTE_ERROR_LOG(rc); + goto REPORT_ERROR; + } + if (!ORTE_PROC_IS_HNP) { /* populate the node array of the job map and the proc array of * the job object so we know how many procs are on each node */