1414 * Copyright (c) 2011 Cisco Systems, Inc. All rights reserved.
1515 * Copyright (c) 2011-2013 Los Alamos National Security, LLC. All rights
1616 * reserved.
17- * Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
17+ * Copyright (c) 2013-2018 Intel, Inc. All rights reserved.
1818 * Copyright (c) 2017 IBM Corporation. All rights reserved.
1919 * $COPYRIGHT$
2020 *
5858#include "orte/mca/iof/base/base.h"
5959#include "orte/mca/plm/base/base.h"
6060#include "orte/mca/odls/base/base.h"
61+ #include "orte/mca/regx/base/base.h"
6162#include "orte/mca/errmgr/errmgr.h"
6263#include "orte/mca/rmaps/base/base.h"
6364#if OPAL_ENABLE_FT_CR == 1
6869#include "orte/util/proc_info.h"
6970#include "orte/util/session_dir.h"
7071#include "orte/util/name_fns.h"
71- #include "orte/util/nidmap.h"
72- #include "orte/util/regex.h"
7372#include "orte/util/show_help.h"
7473#include "orte/mca/errmgr/base/base.h"
7574#include "orte/mca/state/base/base.h"
@@ -519,9 +518,20 @@ int orte_ess_base_orted_setup(void)
519518 }
520519 if (ORTE_SUCCESS != (ret = orte_rmaps_base_select ())) {
521520 ORTE_ERROR_LOG (ret );
522- error = "orte_rmaps_base_find_available " ;
521+ error = "orte_rmaps_base_select " ;
523522 goto error ;
524523 }
524+ if (ORTE_SUCCESS != (ret = mca_base_framework_open (& orte_regx_base_framework , 0 ))) {
525+ ORTE_ERROR_LOG (ret );
526+ error = "orte_regx_base_open" ;
527+ goto error ;
528+ }
529+ if (ORTE_SUCCESS != (ret = orte_regx_base_select ())) {
530+ ORTE_ERROR_LOG (ret );
531+ error = "orte_regx_base_select" ;
532+ goto error ;
533+ }
534+
525535
526536 /* if a topology file was given, then the rmaps framework open
527537 * will have reset our topology. Ensure we always get the right
@@ -545,7 +555,7 @@ int orte_ess_base_orted_setup(void)
545555 * own port, which we need in order to construct the nidmap
546556 */
547557 if (NULL != orte_node_regex ) {
548- if (ORTE_SUCCESS != (ret = orte_util_nidmap_parse (orte_node_regex ))) {
558+ if (ORTE_SUCCESS != (ret = orte_regx . nidmap_parse (orte_node_regex ))) {
549559 ORTE_ERROR_LOG (ret );
550560 error = "construct nidmap" ;
551561 goto error ;
@@ -565,7 +575,7 @@ int orte_ess_base_orted_setup(void)
565575 * build a nidmap from it - this will update the
566576 * routing plan as well
567577 */
568- if (ORTE_SUCCESS != (ret = orte_util_build_daemon_nidmap ())) {
578+ if (ORTE_SUCCESS != (ret = orte_regx . build_daemon_nidmap ())) {
569579 ORTE_ERROR_LOG (ret );
570580 error = "construct daemon map from static ports" ;
571581 goto error ;
0 commit comments