From 38d48b5cf0adcdc06c4619f2a23aeef4e028528a Mon Sep 17 00:00:00 2001 From: Rahul Garg Date: Thu, 29 Jun 2017 00:13:02 +0530 Subject: [PATCH] Fixed hipDeviceGetPCIBusId for HIP/NVCC Change-Id: I662efa148257a710f09002850b41d57bef00dff3 --- hipamd/include/hip/nvcc_detail/hip_runtime_api.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hipamd/include/hip/nvcc_detail/hip_runtime_api.h b/hipamd/include/hip/nvcc_detail/hip_runtime_api.h index b1011aac6c..ae4d99d787 100644 --- a/hipamd/include/hip/nvcc_detail/hip_runtime_api.h +++ b/hipamd/include/hip/nvcc_detail/hip_runtime_api.h @@ -873,7 +873,7 @@ inline static hipError_t hipDeviceGetName(char *name,int len,hipDevice_t device) inline static hipError_t hipDeviceGetPCIBusId(char* pciBusId,int len,hipDevice_t device) { - return hipCUResultTohipError(cuDeviceGetPCIBusId(pciBusId,len,device)); + return hipCUDAErrorTohipError(cudaDeviceGetPCIBusId(pciBusId,len,device)); } inline static hipError_t hipDeviceGetByPCIBusId(int* device, const int *pciBusId)