Build Error correction in hipDeviceGetPCIBusId

Change-Id: I50ff4d95b7a732924c7a991cba60400b1c93c0de
Этот коммит содержится в:
Rahul Garg
2016-12-06 17:09:21 +05:30
родитель 0017419521
Коммит a019f1ce39
+1 -1
Просмотреть файл
@@ -343,7 +343,7 @@ hipError_t hipDeviceGetPCIBusId (char *pciBusId,int len,hipDevice_t device)
hipError_t e = hipSuccess;
int deviceId= device->_deviceId;
int tempPciBusId = 0;
e = ihipDeviceGetAttribute( tempPciBusId, hipDeviceAttributePciBusId, deviceId);
e = ihipDeviceGetAttribute( &tempPciBusId, hipDeviceAttributePciBusId, deviceId);
if( e == hipSuccess) {
std::string tempPciStr = std::to_string(tempPciBusId);
memcpy( pciBusId , tempPciStr.c_str() , tempPciStr.length() );