mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
Merge pull request #23037 from cudawarped:fix_for_cuda_12
This commit is contained in:
commit
f637629c5a
@ -99,7 +99,6 @@ namespace cv { namespace cuda
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if (CUDART_VERSION >= 12000)
|
#if (CUDART_VERSION >= 12000)
|
||||||
template<class T> inline void bindTexture(const textureReference* tex, const PtrStepSz<T>& img) { CV_Error(cv::Error::GpuNotSupported, "Function removed in CUDA SDK 12"); }
|
|
||||||
template<class T> inline void createTextureObjectPitch2D(cudaTextureObject_t* tex, PtrStepSz<T>& img, const cudaTextureDesc& texDesc) {
|
template<class T> inline void createTextureObjectPitch2D(cudaTextureObject_t* tex, PtrStepSz<T>& img, const cudaTextureDesc& texDesc) {
|
||||||
CV_Error(cv::Error::GpuNotSupported, "Function removed in CUDA SDK 12"); }
|
CV_Error(cv::Error::GpuNotSupported, "Function removed in CUDA SDK 12"); }
|
||||||
#else
|
#else
|
||||||
@ -123,8 +122,8 @@ namespace cv { namespace cuda
|
|||||||
|
|
||||||
cudaSafeCall( cudaCreateTextureObject(tex, &resDesc, &texDesc, NULL) );
|
cudaSafeCall( cudaCreateTextureObject(tex, &resDesc, &texDesc, NULL) );
|
||||||
}
|
}
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
|
|
||||||
//! @endcond
|
//! @endcond
|
||||||
|
Loading…
Reference in New Issue
Block a user