From: cudawarped <12133430+cudawarped@users.noreply.github.com> Date: Mon, 26 Dec 2022 07:09:25 +0000 (+0200) Subject: cuda: fix CUDA 12.0 build errors X-Git-Tag: accepted/tizen/unified/20230127.161057~1^2~7^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=692d6168b3c87eaedc246b3fc75e51ac11474e32;p=platform%2Fupstream%2Fopencv.git cuda: fix CUDA 12.0 build errors --- diff --git a/modules/core/include/opencv2/core/cuda/common.hpp b/modules/core/include/opencv2/core/cuda/common.hpp index 348bdf1823..134809678d 100644 --- a/modules/core/include/opencv2/core/cuda/common.hpp +++ b/modules/core/include/opencv2/core/cuda/common.hpp @@ -99,7 +99,6 @@ namespace cv { namespace cuda } #if (CUDART_VERSION >= 12000) - template inline void bindTexture(const textureReference* tex, const PtrStepSz& img) { CV_Error(cv::Error::GpuNotSupported, "Function removed in CUDA SDK 12"); } template inline void createTextureObjectPitch2D(cudaTextureObject_t* tex, PtrStepSz& img, const cudaTextureDesc& texDesc) { CV_Error(cv::Error::GpuNotSupported, "Function removed in CUDA SDK 12"); } #else @@ -123,8 +122,8 @@ namespace cv { namespace cuda cudaSafeCall( cudaCreateTextureObject(tex, &resDesc, &texDesc, NULL) ); } - } #endif + } }} //! @endcond