From d5139b29ef36979b657b1dade36c10e7ee08a083 Mon Sep 17 00:00:00 2001 From: Marko Arandjelovic Date: Wed, 31 Jul 2024 15:21:46 +0200 Subject: [PATCH] SWDEV-476869 - Add mapping to cudaGetTextureReference Change-Id: I85a6e4423d7b8b88ed18629225c583b87551414f [ROCm/hipother commit: ccd569c4bb0e78ad830d8e8e9cf3048290a1e0a3] --- .../hipnv/include/hip/nvidia_detail/nvidia_hip_runtime_api.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/projects/hipother/hipnv/include/hip/nvidia_detail/nvidia_hip_runtime_api.h b/projects/hipother/hipnv/include/hip/nvidia_detail/nvidia_hip_runtime_api.h index cafe4e41f9..d923d98d83 100644 --- a/projects/hipother/hipnv/include/hip/nvidia_detail/nvidia_hip_runtime_api.h +++ b/projects/hipother/hipnv/include/hip/nvidia_detail/nvidia_hip_runtime_api.h @@ -3259,6 +3259,11 @@ inline static hipError_t hipGetTextureObjectResourceDesc(hipResourceDesc* pResDe } #if CUDA_VERSION < CUDA_12000 +__HIP_DEPRECATED inline static hipError_t hipGetTextureReference(const textureReference** texref, + const void* symbol) { + return hipCUDAErrorTohipError(cudaGetTextureReference(texref, symbol)); +} + __HIP_DEPRECATED inline static hipError_t hipGetTextureAlignmentOffset( size_t* offset, const struct textureReference* texref) { return hipCUDAErrorTohipError(cudaGetTextureAlignmentOffset(offset,texref));