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;