From 9e55cdfa904f5edc4482cc336fc854c1309a922b 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 [ROCm/hip commit: d6db525f51082100afc61235f864f888223d99c3] --- projects/hip/include/hip/nvcc_detail/hip_runtime_api.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip/include/hip/nvcc_detail/hip_runtime_api.h b/projects/hip/include/hip/nvcc_detail/hip_runtime_api.h index b1011aac6c..ae4d99d787 100644 --- a/projects/hip/include/hip/nvcc_detail/hip_runtime_api.h +++ b/projects/hip/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)