Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit bfca8a1

Browse files
authored
Merge pull request #1107 from rhc54/cmr2.0/size
Correctly set the #procs in the job to "job_size", and the max_procs to "univ_size"
2 parents 45b7f8b + 14a74b9 commit bfca8a1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

orte/mca/ess/pmi/ess_pmi_module.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,17 @@ static int rte_init(void)
161161
error = "getting univ size";
162162
goto error;
163163
}
164+
orte_process_info.max_procs = u32;
165+
166+
/* get job size */
167+
OPAL_MODEX_RECV_VALUE(ret, OPAL_PMIX_JOB_SIZE,
168+
ORTE_PROC_MY_NAME, &u32ptr, OPAL_UINT32);
169+
if (OPAL_SUCCESS != ret) {
170+
error = "getting job size";
171+
goto error;
172+
}
164173
orte_process_info.num_procs = u32;
174+
165175
/* push into the environ for pickup in MPI layer for
166176
* MPI-3 required info key
167177
*/

0 commit comments

Comments
 (0)