Skip to content

Commit f973381

Browse files
authored
Merge pull request #7524 from awlauria/update_info_for_prrte
Update two orte specific env's to be more generic
2 parents c296dad + b675a76 commit f973381

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)