Skip to content

Commit f054261

Browse files
author
Ralph Castain
authored
Merge pull request #3027 from naughtont3/tjn-envvar-dvmuri
dvm: Add envvar 'ORTE_HNP_DVM_URI' to schizo:ompi
2 parents feed472 + 006be92 commit f054261

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

orte/mca/schizo/ompi/schizo_ompi.c

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
* Copyright (c) 2006-2013 Los Alamos National Security, LLC.
1313
* All rights reserved.
1414
* Copyright (c) 2009-2016 Cisco Systems, Inc. All rights reserved.
15-
* Copyright (c) 2011 Oak Ridge National Labs. All rights reserved.
15+
* Copyright (c) 2011-2017 Oak Ridge National Labs. All rights reserved.
16+
* Copyright (c) 2017 UT-Battelle, LLC. All rights reserved.
1617
* Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
1718
* Copyright (c) 2015 Research Organization for Information Science
1819
* and Technology (RIST). All rights reserved.
@@ -480,6 +481,15 @@ static int define_cli(opal_cmd_line_t *cli)
480481
}
481482
}
482483

484+
/*
485+
* Check if a HNP DVM URI is being passed via environment.
486+
* Note: Place before opal_cmd_line_parse() so that
487+
* if user passes both envvar & cmdln, the cmdln wins.
488+
*/
489+
if (NULL != getenv("ORTE_HNP_DVM_URI")) {
490+
orte_cmd_options.hnp = strdup(getenv("ORTE_HNP_DVM_URI"));
491+
}
492+
483493
/* just add ours to the end */
484494
rc = opal_cmd_line_add(cli, cmd_line_init);
485495
return rc;

0 commit comments

Comments
 (0)