From 522677e2ddf10c2a7c7f25f2bc5e53b5022a7552 Mon Sep 17 00:00:00 2001 From: Rahul Garg Date: Tue, 5 Jun 2018 18:46:25 +0530 Subject: [PATCH] Add getTextureResourceDescriptor on NVCC [ROCm/hip commit: 17bb8dbe86a3866db3f4bacf4aa1084d0592d386] --- projects/hip/include/hip/nvcc_detail/hip_runtime_api.h | 4 ++++ 1 file changed, 4 insertions(+) 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 fbff263295..1d107b2c5f 100644 --- a/projects/hip/include/hip/nvcc_detail/hip_runtime_api.h +++ b/projects/hip/include/hip/nvcc_detail/hip_runtime_api.h @@ -1228,6 +1228,10 @@ inline static hipError_t hipDestroySurfaceObject(hipSurfaceObject_t surfaceObjec return hipCUDAErrorTohipError(cudaDestroySurfaceObject(surfaceObject)); } +inline static hipError_t hipGetTextureObjectResourceDesc(hipResourceDesc* pResDesc, + hipTextureObject_t textureObject) { + return hipCUDAErrorTohipError(cudaGetTextureObjectResourceDesc( pResDesc, textureObject)); +} #endif //__CUDACC__ #endif // HIP_INCLUDE_HIP_NVCC_DETAIL_HIP_RUNTIME_API_H