diff --git a/orte/mca/rmaps/resilient/rmaps_resilient.c b/orte/mca/rmaps/resilient/rmaps_resilient.c index 0d4e426849..03d7f7d09c 100644 --- a/orte/mca/rmaps/resilient/rmaps_resilient.c +++ b/orte/mca/rmaps/resilient/rmaps_resilient.c @@ -542,6 +542,9 @@ static int orte_rmaps_resilient_map(orte_job_t *jdata) } cleanup: + /* track number of procs */ + jdata->num_procs += app->num_procs; + /* compute vpids and add proc objects to the job - this has to be * done after each app_context is mapped in order to keep the * vpids contiguous within an app_context @@ -551,9 +554,6 @@ static int orte_rmaps_resilient_map(orte_job_t *jdata) return rc; } - /* track number of procs */ - jdata->num_procs += app->num_procs; - /* cleanup the node list - it can differ from one app_context * to another, so we have to get it every time */