Skip to content

Commit 63222d3

Browse files
committed
mtl: ofi change to allow cxi anywhere in provname
Note: This is needed to allow for cases when CXI appears elsewhere in the libfabirc provider name (e.g., "shm+cxi:linkx"). Signed-off-by: Thomas Naughton <naughtont@ornl.gov> Signed-off-by: Amir Shehata <shehataa@ornl.gov>
1 parent 3b6fe68 commit 63222d3

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)