From 75dc4c305a0ce3151ea4567a5223100822f80d09 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Wed, 27 Apr 2016 12:00:19 -0700 Subject: [PATCH] Correctly set the #procs in the job to "job_size", and the max_procs to "univ_size" --- orte/mca/ess/pmi/ess_pmi_module.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/orte/mca/ess/pmi/ess_pmi_module.c b/orte/mca/ess/pmi/ess_pmi_module.c index ffd02e41a29..fe544e1bd85 100644 --- a/orte/mca/ess/pmi/ess_pmi_module.c +++ b/orte/mca/ess/pmi/ess_pmi_module.c @@ -161,7 +161,17 @@ static int rte_init(void) error = "getting univ size"; goto error; } + orte_process_info.max_procs = u32; + + /* get job size */ + OPAL_MODEX_RECV_VALUE(ret, OPAL_PMIX_JOB_SIZE, + ORTE_PROC_MY_NAME, &u32ptr, OPAL_UINT32); + if (OPAL_SUCCESS != ret) { + error = "getting job size"; + goto error; + } orte_process_info.num_procs = u32; + /* push into the environ for pickup in MPI layer for * MPI-3 required info key */