Change to use hipDeviceGetPCIBusId api for hipEnvVarDriver test

Tá an tiomantas seo le fáil i:
sunway513
2017-07-27 17:41:49 +00:00
tuismitheoir af8d028aa4
tiomantas b7c34fb80f
D'athraigh 2 comhad le 27 breiseanna agus 30 scriosta
+7 -8
Féach ar an gComhad
@@ -109,15 +109,14 @@ int main(int argc, char **argv)
std::cout << devCount << std::endl;
}
if (retDevInfo) {
hipSetDevice(device);
hipDeviceProp_t devProp;
hipDevice_t deviceT;
hipDeviceGet(&deviceT, device);
hipGetDeviceProperties(&devProp, device);
if (devProp.major < 1) {
printf("%d does not support HIP\n", device);
return -1;
}
std::cout << devProp.pciBusID << std::endl;
char pciBusId[100];
memset(pciBusId,0,100);
hipDeviceGetPCIBusId(pciBusId,100,deviceT);
cout<<pciBusId<<endl;
}
exit(0);
}