From d21f8da9663faa6209ccde42ba3de78962fd4f18 Mon Sep 17 00:00:00 2001 From: sumanthtg Date: Tue, 23 Mar 2021 21:43:54 +0530 Subject: [PATCH] SWDEV-278478 - Fix for hipDeviceGetPCIBusId-vs-lspci test failure Change-Id: I7c722633ba8023f03bb64f5fb32b31f10015c327 [ROCm/clr commit: e7ee877a506ec857e4a9f77f00416b663bb7774d] --- .../hipamd/tests/src/runtimeApi/device/hipDeviceGetPCIBusId.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }