From 4a311ae9fdec68f6efb5fc84706fc7012e48308a Mon Sep 17 00:00:00 2001 From: Devendar Bureddy Date: Wed, 20 Nov 2013 22:23:12 +0000 Subject: [PATCH] continue search sorted openib device list if no btls found with nearest HCA. cmr=v1.7.4:reviewer=jladd This commit was SVN r29725. --- ompi/mca/btl/openib/btl_openib_component.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ompi/mca/btl/openib/btl_openib_component.c b/ompi/mca/btl/openib/btl_openib_component.c index 481d447ecc..1e4f64b0d3 100644 --- a/ompi/mca/btl/openib/btl_openib_component.c +++ b/ompi/mca/btl/openib/btl_openib_component.c @@ -2756,7 +2756,8 @@ btl_openib_component_init(int *num_btl_modules, i < num_devs && (-1 == mca_btl_openib_component.ib_max_btls || mca_btl_openib_component.ib_num_btls < mca_btl_openib_component.ib_max_btls); i++) { - if (distance != dev_sorted[i].distance) { + if (0 != mca_btl_openib_component.ib_num_btls && + distance != dev_sorted[i].distance) { break; }