From 34fcaa23bbc011499524fe25e63dd5544161dd20 Mon Sep 17 00:00:00 2001 From: Rahul Garg Date: Sat, 1 Jul 2017 07:56:30 +0530 Subject: [PATCH] Fixed build error in hipDeviceGetByPCIBusId Change-Id: I33be362910c4c5dca7435fb9c41f427b54f0e9a7 --- include/hip/hcc_detail/hip_runtime_api.h | 2 +- src/hip_device.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/hip/hcc_detail/hip_runtime_api.h b/include/hip/hcc_detail/hip_runtime_api.h index 724bf09b21..2036aa5008 100644 --- a/include/hip/hcc_detail/hip_runtime_api.h +++ b/include/hip/hcc_detail/hip_runtime_api.h @@ -1867,7 +1867,7 @@ hipError_t hipDeviceGetPCIBusId (char *pciBusId,int len,int device); * * @returns #hipSuccess, #hipErrorInavlidDevice, #hipErrorInvalidValue */ -hipError_t hipDeviceGetByPCIBusId ( int* device,const int* pciBusId ); +hipError_t hipDeviceGetByPCIBusId ( int* device,const char* pciBusId ); /** diff --git a/src/hip_device.cpp b/src/hip_device.cpp index 66c6c7db5f..9086cd8012 100644 --- a/src/hip_device.cpp +++ b/src/hip_device.cpp @@ -395,7 +395,7 @@ hipError_t hipDeviceTotalMem (size_t *bytes,hipDevice_t device) return ihipLogStatus(e); } -hipError_t hipDeviceGetByPCIBusId (int* device, const int* pciBusId ) +hipError_t hipDeviceGetByPCIBusId (int* device, const char* pciBusId ) { HIP_INIT_API(device,pciBusId); hipDeviceProp_t tempProp;