From cbb660504cdcd70cf6fe91d8dad90bc772a1634b Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Fri, 15 Dec 2006 14:01:21 +0000 Subject: [PATCH] Retain the ability to run valgrind on the bproc launcher - do not call bproc_version if "nolaunch" is specified. This commit was SVN r12866. --- orte/mca/pls/bproc/pls_bproc_component.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/orte/mca/pls/bproc/pls_bproc_component.c b/orte/mca/pls/bproc/pls_bproc_component.c index a72e32463b..f55e52db6a 100644 --- a/orte/mca/pls/bproc/pls_bproc_component.c +++ b/orte/mca/pls/bproc/pls_bproc_component.c @@ -105,9 +105,11 @@ orte_pls_base_module_t* orte_pls_bproc_init(int *priority) { return NULL; /* okay, we are in an HNP - now check to see if BProc is running here */ - ret = bproc_version(&version); - if (ret != 0) { - return NULL; + if (!mca_pls_bproc_component.do_not_launch) { + ret = bproc_version(&version); + if (ret != 0) { + return NULL; + } } /* only launch from the master node */