Skip to content

Commit 1ef3c86

Browse files
author
rhc54
authored
Merge pull request #1931 from hjelmn/ess_fix
ess/base: set up nidmap after pmix
2 parents ee1ee20 + 3c23502 commit 1ef3c86

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

orte/mca/ess/base/ess_base_std_orted.c

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -455,33 +455,6 @@ int orte_ess_base_orted_setup(char **hosts)
455455
error = "orte_rml.enable_comm";
456456
goto error;
457457
}
458-
#if ORTE_ENABLE_STATIC_PORTS
459-
/* if we are using static ports, then we need to setup
460-
* the daemon info so the RML can function properly
461-
* without requiring a wireup stage. This must be done
462-
* after we enable_comm as that function determines our
463-
* own port, which we need in order to construct the nidmap
464-
*/
465-
if (orte_static_ports) {
466-
/* define the routing tree so we know the pattern
467-
* if we are trying to setup common or static ports
468-
*/
469-
orte_routed.update_routing_plan();
470-
/* extract the node info from the environment and
471-
* build a nidmap from it
472-
*/
473-
if (ORTE_SUCCESS != (ret = orte_util_build_daemon_nidmap(hosts))) {
474-
ORTE_ERROR_LOG(ret);
475-
error = "construct daemon map from static ports";
476-
goto error;
477-
}
478-
}
479-
#endif
480-
/* be sure to update the routing tree so the initial "phone home"
481-
* to mpirun goes through the tree if static ports were enabled - still
482-
* need to do it anyway just to initialize things
483-
*/
484-
orte_routed.update_routing_plan();
485458
/* Now provide a chance for the PLM
486459
* to perform any module-specific init functions. This
487460
* needs to occur AFTER the communications are setup
@@ -519,6 +492,33 @@ int orte_ess_base_orted_setup(char **hosts)
519492
error = "pmix_server_init";
520493
goto error;
521494
}
495+
#if ORTE_ENABLE_STATIC_PORTS
496+
/* if we are using static ports, then we need to setup
497+
* the daemon info so the RML can function properly
498+
* without requiring a wireup stage. This must be done
499+
* after we enable_comm as that function determines our
500+
* own port, which we need in order to construct the nidmap
501+
*/
502+
if (orte_static_ports) {
503+
/* define the routing tree so we know the pattern
504+
* if we are trying to setup common or static ports
505+
*/
506+
orte_routed.update_routing_plan();
507+
/* extract the node info from the environment and
508+
* build a nidmap from it
509+
*/
510+
if (ORTE_SUCCESS != (ret = orte_util_build_daemon_nidmap(hosts))) {
511+
ORTE_ERROR_LOG(ret);
512+
error = "construct daemon map from static ports";
513+
goto error;
514+
}
515+
}
516+
#endif
517+
/* be sure to update the routing tree so the initial "phone home"
518+
* to mpirun goes through the tree if static ports were enabled - still
519+
* need to do it anyway just to initialize things
520+
*/
521+
orte_routed.update_routing_plan();
522522

523523
/* setup the routed info - the selected routed component
524524
* will know what to do.

0 commit comments

Comments
 (0)