From 4606e364e0c8b507c3f9e6d8f32b883fd94a462f Mon Sep 17 00:00:00 2001 From: pensun Date: Tue, 6 Dec 2016 14:21:03 -0600 Subject: [PATCH] change hipgetPCIID to take int as third parameter Change-Id: I4429b36756a6d868a769abd783bf28a55147c0d0 [ROCm/hip commit: 01f688587e845a4a7561e262755fcbf134237c71] --- projects/hip/src/hip_device.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/projects/hip/src/hip_device.cpp b/projects/hip/src/hip_device.cpp index 38021ad525..093277b941 100644 --- a/projects/hip/src/hip_device.cpp +++ b/projects/hip/src/hip_device.cpp @@ -337,16 +337,7 @@ hipError_t hipDeviceGetName(char *name,int len,hipDevice_t device) return ihipLogStatus(e); } -// hipError_t hipDeviceGetPCIBusId (char *pciBusId,int len,hipDevice_t device) -// { -// HIP_INIT_API(pciBusId, len, device); -// hipError_t e = hipSuccess; -// int deviceId= device->_deviceId; -// e = ihipDeviceGetAttribute((int*)pciBusId, hipDeviceAttributePciBusId, deviceId); -// return ihipLogStatus(e); -// } - -hipError_t hipDeviceGetPCIBusId (char *pciBusId,int len,int device) +hipError_t hipDeviceGetPCIBusId (char *pciBusId,int len, int device) { HIP_INIT_API(pciBusId, len, device); hipError_t e = hipSuccess; @@ -358,7 +349,6 @@ hipError_t hipDeviceGetPCIBusId (char *pciBusId,int len,int device) } return ihipLogStatus(e); } - hipError_t hipDeviceTotalMem (size_t *bytes,hipDevice_t device) { HIP_INIT_API(bytes, device);