From e46eee3fcbeafe6ff289eac0d4dbe01274ecaeba Mon Sep 17 00:00:00 2001 From: Howard Pritchard Date: Fri, 5 Aug 2016 07:34:46 -0500 Subject: [PATCH] mtl/ofi: use mca param to set av type Signed-off-by: Howard Pritchard --- ompi/mca/mtl/ofi/mtl_ofi_component.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ompi/mca/mtl/ofi/mtl_ofi_component.c b/ompi/mca/mtl/ofi/mtl_ofi_component.c index 6227171350c..f947e3d1cc8 100644 --- a/ompi/mca/mtl/ofi/mtl_ofi_component.c +++ b/ompi/mca/mtl/ofi/mtl_ofi_component.c @@ -455,9 +455,10 @@ ompi_mtl_ofi_component_init(bool enable_progress_threads, /** * The remote fi_addr will be stored in the ofi_endpoint struct. - * So, we use the AV in "map" mode. */ - av_attr.type = FI_AV_MAP; + + av_attr.type = (MTL_OFI_AV_TABLE == av_type) ? FI_AV_MAP: FI_AV_TABLE; + ret = fi_av_open(ompi_mtl_ofi.domain, &av_attr, &ompi_mtl_ofi.av, NULL); if (ret) { opal_output_verbose(1, ompi_mtl_base_framework.framework_output,