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

Commit 14a74b9

Browse files
author
Ralph Castain
committed
Correctly set the #procs in the job to "job_size", and the max_procs to "univ_size"
(cherry picked from commit 75dc4c3)
1 parent 237da73 commit 14a74b9

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
@@ -140,7 +140,17 @@ static int rte_init(void)
140140
error = "getting univ size";
141141
goto error;
142142
}
143+
orte_process_info.max_procs = u32;
144+
145+
/* get job size */
146+
OPAL_MODEX_RECV_VALUE(ret, OPAL_PMIX_JOB_SIZE,
147+
ORTE_PROC_MY_NAME, &u32ptr, OPAL_UINT32);
148+
if (OPAL_SUCCESS != ret) {
149+
error = "getting job size";
150+
goto error;
151+
}
143152
orte_process_info.num_procs = u32;
153+
144154
/* push into the environ for pickup in MPI layer for
145155
* MPI-3 required info key
146156
*/

0 commit comments

Comments
 (0)