From f51eeeb5de3fb2e77576a8b0b11f47a5207b9cd5 Mon Sep 17 00:00:00 2001 From: Anusha Godavarthy Surya Date: Fri, 25 Oct 2019 12:21:41 +0530 Subject: [PATCH] Fixed CI build failure [ROCm/hip commit: ce04bdaa1a1a591d0e399828fad50aea7ce2442c] --- projects/hip/include/hip/nvcc_detail/hip_runtime_api.h | 5 +++++ 1 file changed, 5 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 97551d15d4..ee08c668e9 100644 --- a/projects/hip/include/hip/nvcc_detail/hip_runtime_api.h +++ b/projects/hip/include/hip/nvcc_detail/hip_runtime_api.h @@ -1383,6 +1383,11 @@ inline static hipError_t hipUnbindTexture(struct texture* tex) return hipCUDAErrorTohipError(cudaUnbindTexture(tex)); } +template +inline static hipError_t hipUnbindTexture(struct texture &tex) { + return hipCUDAErrorTohipError(cudaUnbindTexture(tex)); +} + inline static hipError_t hipBindTexture(size_t* offset, textureReference* tex, const void* devPtr, const hipChannelFormatDesc* desc, size_t size = UINT_MAX){ return hipCUDAErrorTohipError(cudaBindTexture(offset, tex, devPtr, desc, size));