From 6545e6e9a8d705939603eb89f30a5e1006d6ec5c Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Fri, 2 May 2014 10:35:14 +0000 Subject: [PATCH] Add one more check for failed mapping that rarely occurs, but results in a hang when it does cmr=v1.8.2:reviewer=rhc This commit was SVN r31598. --- orte/mca/rmaps/base/rmaps_base_map_job.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orte/mca/rmaps/base/rmaps_base_map_job.c b/orte/mca/rmaps/base/rmaps_base_map_job.c index b278a12a2a..b24e4edfb8 100644 --- a/orte/mca/rmaps/base/rmaps_base_map_job.c +++ b/orte/mca/rmaps/base/rmaps_base_map_job.c @@ -301,7 +301,7 @@ void orte_rmaps_base_map_job(int fd, short args, void *cbdata) /* if we get here without doing the map, or with zero procs in * the map, then that's an error */ - if (!did_map || 0 == jdata->num_procs) { + if (!did_map || 0 == jdata->num_procs || 0 == jdata->map->num_nodes) { orte_show_help("help-orte-rmaps-base.txt", "failed-map", true); ORTE_ACTIVATE_JOB_STATE(jdata, ORTE_JOB_STATE_MAP_FAILED); OBJ_RELEASE(caddy);