Skip to content

Commit 9b72e94

Browse files
committed
mtl/ofi: ignore case when comparing provider names
Change the provider include and exclude list name comparison check to ignore case. The UDP provider's name is uppercase and was being selected despite being in the exclude list. Signed-off-by: Robert Wespetal <wesper@amazon.com>
1 parent 1af6dbe commit 9b72e94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/mca/mtl/ofi/mtl_ofi_component.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ is_in_list(char **list, char *item)
330330
}
331331

332332
while (NULL != list[i]) {
333-
if (0 == strncmp(item, list[i], strlen(list[i]))) {
333+
if (0 == strncasecmp(item, list[i], strlen(list[i]))) {
334334
return 1;
335335
} else {
336336
i++;

0 commit comments

Comments
 (0)