Skip to content

Commit b675a76

Browse files
committed
Update two orte specific env's to be more generic.
orte is gone, and we don't want to require other RM's to either use a prrte specific env, or to set their own. OMPI_MCA_orte_ess_num_procs -> OMPI_MCA_num_procs OMPI_MCA_orte_cpu_type -> OMPI_MCA_cpu_type See PRRTE PR's: openpmix/prrte#443 openpmix/prrte#440 Signed-off-by: Austen Lauria <[email protected]>
1 parent 11028d0 commit b675a76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ompi/info/info.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ int ompi_mpiinfo_init(void)
117117
}
118118

119119
/* max procs for the entire job */
120-
if (NULL != (cptr = getenv("OMPI_MCA_orte_ess_num_procs"))) {
120+
if (NULL != (cptr = getenv("OMPI_MCA_num_procs"))) {
121121
opal_info_set(&ompi_mpi_info_env.info.super, "maxprocs", cptr);
122122
/* Open MPI does not support the "soft" option, so set it to maxprocs */
123123
opal_info_set(&ompi_mpi_info_env.info.super, "soft", cptr);
@@ -128,7 +128,7 @@ int ompi_mpiinfo_init(void)
128128
opal_info_set(&ompi_mpi_info_env.info.super, "host", val);
129129

130130
/* architecture name */
131-
if (NULL != (cptr = getenv("OMPI_MCA_orte_cpu_type"))) {
131+
if (NULL != (cptr = getenv("OMPI_MCA_cpu_type"))) {
132132
opal_info_set(&ompi_mpi_info_env.info.super, "arch", cptr);
133133
}
134134
#ifdef HAVE_SYS_UTSNAME_H

0 commit comments

Comments
 (0)