Skip to content

Commit 7562c93

Browse files
naughtont3edgargabriel
authored andcommitted
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 <[email protected]> Signed-off-by: Amir Shehata <[email protected]> (cherry picked from commit 63222d3)
1 parent 23d7daf commit 7562c93

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)