From 81df8d09cae85370ff1b33b740824a57df765ebf Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Tue, 24 Dec 2013 16:32:31 +0000 Subject: [PATCH] Avoid use of PMI components when launched via mpirun as this is just unnecessary overhead that can cause confusion. cmr=v1.7.4:reviewer=miked:subject=Avoid use of PMI components when launched via mpirun This commit was SVN r30078. --- orte/mca/odls/base/odls_base_default_fns.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/orte/mca/odls/base/odls_base_default_fns.c b/orte/mca/odls/base/odls_base_default_fns.c index 198d9eed13..3e6137fe52 100644 --- a/orte/mca/odls/base/odls_base_default_fns.c +++ b/orte/mca/odls/base/odls_base_default_fns.c @@ -768,7 +768,7 @@ static int odls_base_default_setup_fork(orte_app_context_t *context, * info, though. We are setting the environment up on a * per-context basis, and will add the individual proc * info later. This also sets the mca param to select - * the "env" component in the SDS framework. + * the "env" component in the ESS framework. */ orte_ess_env_put(vpid_range, num_local_procs, environ_copy); @@ -777,6 +777,14 @@ static int odls_base_default_setup_fork(orte_app_context_t *context, opal_setenv(param, orte_process_info.tmpdir_base, true, environ_copy); free(param); + /* since we are launching via orted, ensure the app + * doesn't open any of the PMI components even if we + * are in a PMI environment - saves overhead. Don't + * override any existing directives, though! + */ + opal_setenv("OMPI_MCA_grpcomm", "^pmi", false, environ_copy); + opal_setenv("OMPI_MCA_db", "^pmi", false, environ_copy); + return ORTE_SUCCESS; }