diff --git a/projects/clr/hipamd/tests/src/runtimeApi/device/hipDeviceGetPCIBusId.cpp b/projects/clr/hipamd/tests/src/runtimeApi/device/hipDeviceGetPCIBusId.cpp index 7c516298fb..3b6dcabde5 100644 --- a/projects/clr/hipamd/tests/src/runtimeApi/device/hipDeviceGetPCIBusId.cpp +++ b/projects/clr/hipamd/tests/src/runtimeApi/device/hipDeviceGetPCIBusId.cpp @@ -128,7 +128,7 @@ bool compareHipDeviceGetPCIBusIdWithLspci() { while (fgets(pciDeviceList[index], sizeof(pciDeviceList[index]), fpipe)) { bool bMatchFound = false; for (int deviceNo = 0; deviceNo < deviceCount; deviceNo++) { - if (!strncmp(pciDeviceList[index], hipDeviceList[deviceNo], 10)) { + if (!strncasecmp(pciDeviceList[index], hipDeviceList[deviceNo], 10)) { deviceMatchCount++; bMatchFound = true; }