Skip to content

Commit 2afdaca

Browse files
authored
Merge pull request #12290 from naughtont3/mtl-cxi-compare
mtl: ofi change to allow cxi anywhere in provname
2 parents a0e9b01 + 63222d3 commit 2afdaca

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
@@ -831,7 +831,8 @@ ompi_mtl_ofi_component_init(bool enable_progress_threads,
831831
* have a problem here since it uses fi_mr_regattr only within the context of an rcache, and manages the
832832
* requested_key field in this way.
833833
*/
834-
if (!strncasecmp(prov->fabric_attr->prov_name, "cxi", 3)) {
834+
if ((NULL != strstr(prov->fabric_attr->prov_name, "cxi")) ||
835+
(NULL != strstr(prov->fabric_attr->prov_name, "CXI")) ) {
835836
ompi_mtl_ofi.hmem_needs_reg = false;
836837
}
837838

0 commit comments

Comments
 (0)