Skip to content

Commit c1c71b2

Browse files
authored
Merge pull request #8002 from hppritcha/topic/ofi_gni_prov_patch_for_mtl
OFI: patch OFI MTL for GNI provider
2 parents 8727e98 + d6ac41c commit c1c71b2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

ompi/mca/mtl/ofi/mtl_ofi_component.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -920,6 +920,17 @@ ompi_mtl_ofi_component_init(bool enable_progress_threads,
920920
goto error;
921921
}
922922

923+
/**
924+
* Unfortunately the attempt to implement FI_MR_SCALABLE in the GNI provider
925+
* doesn't work, at least not well. Since we're asking for the 1.5 libfabric
926+
* API now, we have to tell GNI we want to use Mr. Basic. Using FI_MR_BASIC
927+
* rather than FI_MR_VIRT_ADDR | FI_MR_ALLOCATED | FI_MR_PROV_KEY to stay
928+
* compatible with older libfabrics.
929+
*/
930+
if (!strncmp(prov->fabric_attr->prov_name,"gni",3)) {
931+
prov->domain_attr->mr_mode = FI_MR_BASIC;
932+
}
933+
923934
/**
924935
* Create the access domain, which is the physical or virtual network or
925936
* hardware port/collection of ports. Returns a domain object that can be

0 commit comments

Comments
 (0)