From 29cc6de40b8fbf71fccf867b1e9acbf89474bba7 Mon Sep 17 00:00:00 2001 From: Pavel Shamis Date: Mon, 10 Nov 2008 11:24:57 +0000 Subject: [PATCH] OOB, XOOB, RDMACM and IBCM does not support qp creation and connection for self communication. So we must use self. This commit was SVN r19960. --- ompi/mca/btl/openib/btl_openib.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ompi/mca/btl/openib/btl_openib.c b/ompi/mca/btl/openib/btl_openib.c index 144cb46eb1..0fa1997e38 100644 --- a/ompi/mca/btl/openib/btl_openib.c +++ b/ompi/mca/btl/openib/btl_openib.c @@ -331,6 +331,12 @@ int mca_btl_openib_add_procs( opal_output(-1, "add procs: adding proc %d", i); + /* OOB, XOOB, RDMACM, IBCM does not support SELF comunication, so + * mark the prco as unreachable by openib btl */ + if (OPAL_EQUAL == orte_util_compare_name_fields + (ORTE_NS_CMP_ALL, ORTE_PROC_MY_NAME, &ompi_proc->proc_name)) { + continue; + } #if defined(HAVE_STRUCT_IBV_DEVICE_TRANSPORT_TYPE) /* Most current iWARP adapters (June 2008) cannot handle talking to other processes on the same host (!) -- so mark