Mapped hipDevice_t to int

Change-Id: I6cfa56c42b7cd04aa0e0bce510c0d72d34ea211a


[ROCm/hip commit: 263a9614ff]
This commit is contained in:
Rahul Garg
2016-12-17 16:53:03 +05:30
parent d93219fc00
commit ae83f93ba4
4 changed files with 20 additions and 41 deletions
+2 -1
View File
@@ -27,7 +27,8 @@ int main(){
hipInit(0);
hipDevice_t device;
hipDeviceGet(&device, 0);
char pciBusId[100];
char pciBusId[10];
memset(pciBusId,0,10);
hipDeviceGetPCIBusId(pciBusId,100,device);
printf("PCI Bus ID= %s\n",pciBusId);
return 0;