Fixing/Disabling tests on nvcc path

Change-Id: I7ed4a1246943867482ff595d5f98bb25bd79074b
Tá an tiomantas seo le fáil i:
Jatin Chaudhary údaraithe agus Jatin Chaudhary tiomanta 2020-07-30 00:39:07 -04:00
1 tuismitheoir eb94afcff9
tiomantas e7eaafe165
10 comhad athraithe
+30 -13

Níor tháinig aon chomhaid le do chuardach

@@ -26,7 +26,7 @@
/* HIT_START
* BUILD: %t %s ../../test_common.cpp NVCC_OPTIONS -std=c++11
* TEST_NAMED: %t hipDeviceGetPCIBusId-vs-hipDeviceGetAttribute --tests 0x1
* TEST_NAMED: %t hipDeviceGetPCIBusId-vs-lspci --tests 0x2
* TEST_NAMED: %t hipDeviceGetPCIBusId-vs-lspci --tests 0x2 EXCLUDE_HIP_PLATFORM nvcc
* HIT_END
*/
@@ -106,8 +106,13 @@ bool compareHipDeviceGetPCIBusIdWithLspci() {
getPciBusId(deviceCount, hipDeviceList);
// Get lspci device list and compare with hip device list
#if defined(__CUDA_ARCH__)
char const *command = "lspci -D | grep controller | grep NVIDIA | "
"cut -d ' ' -f 1";
#else
char const *command = "lspci -D | grep controller | grep AMD/ATI | "
"cut -d ' ' -f 1";
#endif
fpipe = popen(command, "r");
if (fpipe == nullptr) {