Skip to content

Commit 83829b1

Browse files
authored
Merge pull request #13090 from edgargabriel/pr/hmem-fix-for-cxi-5.0.x
mtl: ofi change to allow cxi anywhere in provname -v5.0.x
2 parents 899ac67 + 7562c93 commit 83829b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ompi/mca/mtl/ofi/mtl_ofi_component.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,8 @@ ompi_mtl_ofi_component_init(bool enable_progress_threads,
832832
* have a problem here since it uses fi_mr_regattr only within the context of an rcache, and manages the
833833
* requested_key field in this way.
834834
*/
835-
if (!strncasecmp(prov->fabric_attr->prov_name, "cxi", 3)) {
835+
if ((NULL != strstr(prov->fabric_attr->prov_name, "cxi")) ||
836+
(NULL != strstr(prov->fabric_attr->prov_name, "CXI")) ) {
836837
ompi_mtl_ofi.hmem_needs_reg = false;
837838
}
838839

0 commit comments

Comments
 (0)