From a019f1ce391340faeb8ffdb63c7754bc09af4597 Mon Sep 17 00:00:00 2001 From: Rahul Garg Date: Tue, 6 Dec 2016 17:09:21 +0530 Subject: [PATCH] Build Error correction in hipDeviceGetPCIBusId Change-Id: I50ff4d95b7a732924c7a991cba60400b1c93c0de --- hipamd/src/hip_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hipamd/src/hip_device.cpp b/hipamd/src/hip_device.cpp index 085314d461..868dd0b05d 100644 --- a/hipamd/src/hip_device.cpp +++ b/hipamd/src/hip_device.cpp @@ -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() );