From e0425b53e0ea4fbc1067ab5c4d3d649ded0c3846 Mon Sep 17 00:00:00 2001 From: ROCm CI Service Account <66695075+rocm-ci@users.noreply.github.com> Date: Fri, 24 Feb 2023 11:30:33 +0530 Subject: [PATCH] SWDEV-370743 - Adding 'accelerator' keyword in lspci grep for AMD supported devices. (#3142) Change-Id: I5a0c2f4a678c5c80a2f13afe74d2c723912b0858 --- tests/src/runtimeApi/device/hipDeviceGetPCIBusId.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/runtimeApi/device/hipDeviceGetPCIBusId.cpp b/tests/src/runtimeApi/device/hipDeviceGetPCIBusId.cpp index af25ae7228..8349375647 100644 --- a/tests/src/runtimeApi/device/hipDeviceGetPCIBusId.cpp +++ b/tests/src/runtimeApi/device/hipDeviceGetPCIBusId.cpp @@ -113,7 +113,7 @@ bool compareHipDeviceGetPCIBusIdWithLspci() { char const *command = "lspci -D | grep controller | grep NVIDIA | " "cut -d ' ' -f 1"; #else - char const *command = "lspci -D | grep controller | grep AMD/ATI | " + char const *command = "lspci -D | grep -e controller -e accelerator | grep AMD/ATI | " "cut -d ' ' -f 1"; #endif fpipe = popen(command, "r");