From df787bbeabdb85cdd56b77e8759d884484f24fcd Mon Sep 17 00:00:00 2001 From: Pavel Shamis Date: Wed, 6 Feb 2008 13:54:58 +0000 Subject: [PATCH] Fixing compilation issue on machines with ofed under 1.3. Also finx in apm migration flow. This commit was SVN r17383. --- ompi/mca/btl/openib/btl_openib_async.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ompi/mca/btl/openib/btl_openib_async.c b/ompi/mca/btl/openib/btl_openib_async.c index 2291bef075..32d63e0c55 100644 --- a/ompi/mca/btl/openib/btl_openib_async.c +++ b/ompi/mca/btl/openib/btl_openib_async.c @@ -221,13 +221,14 @@ static int btl_openib_async_hcah(struct mca_btl_openib_async_poll *hcas_poll, in case IBV_EVENT_PATH_MIG: if (0 != mca_btl_openib_component.apm) { BTL_ERROR(("APM: Alternative path migration reported.")); - if (xrc_event) { + if (!xrc_event) mca_btl_openib_load_apm(event.element.qp, mca_btl_openib_component.openib_btls[j]); - } else { +#if HAVE_XRC + else mca_btl_openib_load_apm_xrc_rcv(event.element.xrc_qp_num, mca_btl_openib_component.openib_btls[j]); - } +#endif } break; case IBV_EVENT_DEVICE_FATAL: