1
1

If job is fully described, there will be no ppn string to unpack

Signed-off-by: Ralph Castain <rhc@open-mpi.org>
(cherry picked from commit d7283807410c1d37d966180847debe1d43361e92)
Этот коммит содержится в:
Ralph Castain 2018-12-17 16:13:55 -08:00 коммит произвёл Jeff Squyres
родитель 4be4282312
Коммит 2d9c936082

@ -606,17 +606,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 */