Skip to content

Commit fcc1d30

Browse files
author
Ralph Castain
authored
Merge pull request #5775 from karasevb/check_old_topo_key
pmix: check the old topo key to keep compatibility with old RMs
2 parents d923803 + ed42f56 commit fcc1d30

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

opal/mca/hwloc/base/hwloc_base_util.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,11 @@ int opal_hwloc_base_get_topology(void)
350350
OPAL_MODEX_RECV_VALUE_IMMEDIATE(rc, OPAL_PMIX_HWLOC_XML_V1,
351351
&wildcard_rank, &val, OPAL_STRING);
352352
#endif
353+
if (rc != OPAL_SUCCESS) {
354+
/* check the old topo key to keep compatibility with older RMs */
355+
OPAL_MODEX_RECV_VALUE_OPTIONAL(rc, OPAL_PMIX_LOCAL_TOPO,
356+
&wildcard_rank, &val, OPAL_STRING);
357+
}
353358
} else {
354359
opal_output_verbose(1, opal_hwloc_base_framework.framework_output,
355360
"hwloc:base PMIx not available");

0 commit comments

Comments
 (0)