diff --git a/orte/mca/routed/binomial/routed_binomial.c b/orte/mca/routed/binomial/routed_binomial.c index 97602de770..557b21bd2b 100644 --- a/orte/mca/routed/binomial/routed_binomial.c +++ b/orte/mca/routed/binomial/routed_binomial.c @@ -325,6 +325,11 @@ static orte_process_name_t get_route(orte_process_name_t *target) orte_routed_jobfam_t *jfam; uint16_t jfamily; + if (!orte_routing_is_enabled) { + ret = target; + goto found; + } + /* initialize */ daemon.jobid = ORTE_PROC_MY_DAEMON->jobid; daemon.vpid = ORTE_PROC_MY_DAEMON->vpid; diff --git a/orte/mca/routed/cm/routed_cm.c b/orte/mca/routed/cm/routed_cm.c index 9f6d7566cd..3e93d6d83a 100644 --- a/orte/mca/routed/cm/routed_cm.c +++ b/orte/mca/routed/cm/routed_cm.c @@ -302,6 +302,11 @@ static orte_process_name_t get_route(orte_process_name_t *target) orte_routed_jobfam_t *jfam; uint16_t jfamily; + if (!orte_routing_is_enabled) { + ret = target; + goto found; + } + #if ORTE_ENABLE_EPOCH if (target->jobid == ORTE_JOBID_INVALID || target->vpid == ORTE_VPID_INVALID || diff --git a/orte/mca/routed/linear/routed_linear.c b/orte/mca/routed/linear/routed_linear.c index 107a92d833..49f75428a1 100644 --- a/orte/mca/routed/linear/routed_linear.c +++ b/orte/mca/routed/linear/routed_linear.c @@ -306,6 +306,11 @@ static orte_process_name_t get_route(orte_process_name_t *target) orte_routed_jobfam_t *jfam; uint16_t jfamily; + if (!orte_routing_is_enabled) { + ret = target; + goto found; + } + #if ORTE_ENABLE_EPOCH if (target->jobid == ORTE_JOBID_INVALID || target->vpid == ORTE_VPID_INVALID || diff --git a/orte/mca/routed/radix/routed_radix.c b/orte/mca/routed/radix/routed_radix.c index 5ac00a923b..243a5aa0db 100644 --- a/orte/mca/routed/radix/routed_radix.c +++ b/orte/mca/routed/radix/routed_radix.c @@ -321,6 +321,11 @@ static orte_process_name_t get_route(orte_process_name_t *target) orte_routed_jobfam_t *jfam; uint16_t jfamily; + if (!orte_routing_is_enabled) { + ret = target; + goto found; + } + /* initialize */ daemon.jobid = ORTE_PROC_MY_DAEMON->jobid; daemon.vpid = ORTE_PROC_MY_DAEMON->vpid;