From 094bca8b5d52d1ba34ed3b837a20e874b6ff0573 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 [ROCm/hip commit: ca06747e1faa77818c09a984d902cbf888c41aa3] --- projects/hip/src/hip_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip/src/hip_device.cpp b/projects/hip/src/hip_device.cpp index 085314d461..868dd0b05d 100644 --- a/projects/hip/src/hip_device.cpp +++ b/projects/hip/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() );