hipDeviceGetByPCIBusId support for HIP/NVCC

Change-Id: I8f82890e88d2a15f592bff192179e7d5c5362722


[ROCm/clr commit: f86c7b5b3c]
This commit is contained in:
Rahul Garg
2016-11-10 11:35:40 +05:30
orang tua d55b32b765
melakukan cd7ad3d620
@@ -764,6 +764,11 @@ inline static hipError_t hipDeviceGetPCIBusId(int *pciBusId,int len,hipDevice_t
return hipCUResultTohipError(cuDeviceGetPCIBusId((char*)pciBusId,len,device));
}
inline static hipError_t hipDeviceGetByPCIBusId(int* device, const int *pciBusId)
{
return hipCUDAErrorTohipError(cudaDeviceGetByPCIBusId(device,(char*)pciBusId));
}
inline static hipError_t hipDeviceGetLimit(size_t *pValue, hipLimit_t limit)
{
return hipCUDAErrorTohipError(cudaDeviceGetLimit(pValue, limit));