From f176c67cd2495d43e4b1c5fd1e012e88abfda2af Mon Sep 17 00:00:00 2001 From: Brian Barrett Date: Fri, 21 Mar 2008 20:20:00 +0000 Subject: [PATCH] Set the nodeid to something somewhat sane if we're not using modex, and don't set the LOCAL flag just because both procs have an invalid nodeid. This commit was SVN r17917. --- ompi/proc/proc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ompi/proc/proc.c b/ompi/proc/proc.c index 738fa75602..93fe77d746 100644 --- a/ompi/proc/proc.c +++ b/ompi/proc/proc.c @@ -244,6 +244,7 @@ ompi_proc_get_info(void) /* Free the buffer for the next proc */ OBJ_RELEASE(buf); } else if (OMPI_ERR_NOT_IMPLEMENTED == ret) { + nodeid = ORTE_NODEID_INVALID; arch = ompi_proc_local_proc->proc_arch; hostname = strdup(""); ret = ORTE_SUCCESS; @@ -268,7 +269,8 @@ ompi_proc_get_info(void) goto out; #endif } - if (ompi_proc_local_proc->proc_nodeid == proc->proc_nodeid) { + if ((ompi_proc_local_proc->proc_nodeid == proc->proc_nodeid) && + (proc->proc_nodeid != ORTE_NODEID_INVALID)) { proc->proc_flags |= OMPI_PROC_FLAG_LOCAL; }