Skip to content

Commit e46eee3

Browse files
committed
mtl/ofi: use mca param to set av type
Signed-off-by: Howard Pritchard <[email protected]>
1 parent c263461 commit e46eee3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ompi/mca/mtl/ofi/mtl_ofi_component.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,9 +455,10 @@ ompi_mtl_ofi_component_init(bool enable_progress_threads,
455455

456456
/**
457457
* The remote fi_addr will be stored in the ofi_endpoint struct.
458-
* So, we use the AV in "map" mode.
459458
*/
460-
av_attr.type = FI_AV_MAP;
459+
460+
av_attr.type = (MTL_OFI_AV_TABLE == av_type) ? FI_AV_MAP: FI_AV_TABLE;
461+
461462
ret = fi_av_open(ompi_mtl_ofi.domain, &av_attr, &ompi_mtl_ofi.av, NULL);
462463
if (ret) {
463464
opal_output_verbose(1, ompi_mtl_base_framework.framework_output,

0 commit comments

Comments
 (0)