Repository: opencv
Issue: Built target opencv_cudafilters make error
Labels: category: documentation

### Describe the doc issue

When I use "make -j8" to build the opencv with cuda 11.6 on ubuntu 22.04, it meets the following errors. Would any one can help me?

**System information:**
...
modules/cudafilters/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_row_filter.16uc1.cu.o
[ 29%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/darknet/darknet_io.cpp.o
[ 30%] Linking CXX static library ../../lib/libopencv_ts.a
[ 30%] Built target opencv_ts
[ 30%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/debug_utils.cpp.o
[ 30%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/dnn.cpp.o
[ 30%] Building NVCC (Device) object modules/cudafilters/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_row_filter.16uc3.cu.o
[ 30%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/solvepnp.cpp.o
[ 30%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/dnn_params.cpp.o
[ 31%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/dnn_read.cpp.o
[ 31%] Building NVCC (Device) object modules/cudafilters/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_row_filter.16uc4.cu.o
[ 31%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/dnn_utils.cpp.o
[ 31%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/graph_simplifier.cpp.o
[ 31%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/sqpnp.cpp.o
[ 31%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/halide_scheduler.cpp.o
[ 31%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/ie_ngraph.cpp.o
[ 31%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/stereobm.cpp.o
[ 31%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/stereosgbm.cpp.o
[ 31%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/init.cpp.o
[ 31%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/int8layers/batch_norm_layer.cpp.o
[ 31%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/int8layers/convolution_layer.cpp.o
[ 31%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/int8layers/elementwise_layers.cpp.o
[ 31%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/triangulate.cpp.o
[ 31%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/undistort.dispatch.cpp.o
[ 31%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/int8layers/eltwise_layer.cpp.o
[ 31%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/upnp.cpp.o
[ 31%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/usac/bundle.cpp.o
[ 31%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/int8layers/fully_connected_layer.cpp.o
[ 31%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/usac/degeneracy.cpp.o
[ 31%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/int8layers/pooling_layer.cpp.o
[ 31%] Building NVCC (Device) object modules/cudafilters/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_row_filter.32fc1.cu.o
[ 31%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/usac/dls_solver.cpp.o
[ 31%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/usac/essential_solver.cpp.o
[ 31%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/int8layers/quantization_utils.cpp.o
[ 31%] Building NVCC (Device) object modules/cudafilters/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_row_filter.32fc3.cu.o
[ 31%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/int8layers/scale_layer.cpp.o
[ 31%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/int8layers/softmax_layer.cpp.o
[ 31%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layer.cpp.o
[ 31%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layer_factory.cpp.o
[ 31%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/usac/estimator.cpp.o
[ 31%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/accum_layer.cpp.o
[ 31%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/usac/fundamental_solver.cpp.o
[ 31%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/arg_layer.cpp.o
[ 31%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/batch_norm_layer.cpp.o
[ 32%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/usac/gamma_values.cpp.o
[ 32%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/usac/homography_solver.cpp.o
[ 32%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/blank_layer.cpp.o
[ 32%] Building NVCC (Device) object modules/cudafilters/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_row_filter.32fc4.cu.o
[ 32%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/usac/local_optimization.cpp.o
[ 32%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/concat_layer.cpp.o
[ 32%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/const_layer.cpp.o
[ 32%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/usac/pnp_solver.cpp.o
[ 32%] Building NVCC (Device) object modules/cudafilters/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_row_filter.32sc1.cu.o
[ 32%] Building NVCC (Device) object modules/cudafilters/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_row_filter.32sc3.cu.o
[ 32%] Building NVCC (Device) object modules/cudafilters/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_row_filter.32sc4.cu.o
[ 32%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/convolution_layer.cpp.o
[ 32%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/usac/quality.cpp.o
[ 32%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/usac/ransac_solvers.cpp.o
[ 32%] Building NVCC (Device) object modules/cudafilters/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_row_filter.8uc1.cu.o
[ 32%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/correlation_layer.cpp.o
[ 33%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/cpu_kernels/conv_depthwise.cpp.o
[ 33%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/cpu_kernels/conv_winograd_f63.cpp.o
[ 33%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/usac/sampler.cpp.o
[ 33%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/cpu_kernels/convolution.cpp.o
[ 33%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/usac/termination.cpp.o
[ 33%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/crop_and_resize_layer.cpp.o
[ 33%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/usac/utils.cpp.o
[ 33%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/opencl_kernels_calib3d.cpp.o
[ 33%] Building NVCC (Device) object modules/cudafilters/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_row_filter.8uc3.cu.o
[ 33%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/undistort.avx2.cpp.o
[ 33%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/cumsum_layer.cpp.o
[ 33%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/detection_output_layer.cpp.o
[ 33%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/elementwise_layers.cpp.o
[ 33%] Linking CXX shared library ../../lib/libopencv_calib3d.so
[ 33%] Built target opencv_calib3d
[ 33%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/eltwise_layer.cpp.o
[ 33%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/flatten_layer.cpp.o
[ 33%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/flow_warp_layer.cpp.o
[ 33%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/fully_connected_layer.cpp.o
[ 33%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/gather_layer.cpp.o
[ 33%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/layer_norm.cpp.o
[ 33%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/layers_common.cpp.o
[ 33%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/lrn_layer.cpp.o
[ 33%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/max_unpooling_layer.cpp.o
[ 33%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/mvn_layer.cpp.o
[ 33%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/nary_eltwise_layers.cpp.o
[ 33%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/normalize_bbox_layer.cpp.o
[ 33%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/not_implemented_layer.cpp.o
[ 33%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/padding_layer.cpp.o
[ 33%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/permute_layer.cpp.o
[ 33%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/pooling_layer.cpp.o
[ 33%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/prior_box_layer.cpp.o
[ 33%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/proposal_layer.cpp.o
[ 34%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/recurrent_layers.cpp.o
[ 34%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/reduce_layer.cpp.o
[ 34%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/region_layer.cpp.o
In file included from /home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../../cuda4dnn/csl/cudnn.hpp:8,
                 from /home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../../op_cuda.hpp:12,
                 from /home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/recurrent_cells.hpp:8,
                 from /home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/recurrent_layers.cpp:49:
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/cudnn/recurrent.hpp: In instantiation of ‘cv::dnn::cuda4dnn::csl::cudnn::RNNDescriptor<T>::RNNDescriptor(const cv::dnn::cuda4dnn::csl::cudnn::Handle&, cv::dnn::cuda4dnn::csl::cudnn::RNNDescriptor<T>::RNNMode, int, int, bool, const cv::dnn::cuda4dnn::csl::cudnn::DropoutDescriptor&) [with T = __half]’:
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:516:23:   required from ‘cv::dnn::cuda4dnn::csl::LSTM<T>::LSTM(cv::dnn::cuda4dnn::csl::cudnn::Handle, const cv::dnn::cuda4dnn::csl::LSTM<T>::params_type&) [with T = __half]’
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/recurrent_cells.hpp:48:21:   required from ‘cv::dnn::cuda4dnn::LSTMOp<T>::LSTMOp(cv::dnn::cuda4dnn::csl::Stream, cv::dnn::cuda4dnn::csl::cudnn::Handle, const cv::Mat&, const cv::Mat&, const cv::Mat&, const cv::dnn::cuda4dnn::RNNConfiguration&) [with T = __half]’
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../../op_cuda.hpp:194:37:   required from ‘cv::Ptr<cv::dnn::dnn4_v20230620::BackendNode> cv::dnn::make_cuda_node(int, Args&& ...) [with NodeType = cv::dnn::cuda4dnn::LSTMOp; Args = {cv::dnn::cuda4dnn::csl::Stream, cv::dnn::cuda4dnn::csl::cudnn::Handle, cv::Mat&, cv::Mat&, cv::Mat&, cv::dnn::cuda4dnn::RNNConfiguration&}]’
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/recurrent_layers.cpp:766:55:   required from here
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/cudnn/recurrent.hpp:122:58: error: ‘cudnnSetRNNDescriptor_v6’ was not declared in this scope; did you mean ‘cudnnSetRNNDescriptor_v8’?
  122 |             CUDA4DNN_CHECK_CUDNN(cudnnSetRNNDescriptor_v6(
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../../cuda4dnn/csl/cudnn/cudnn.hpp:22:53: note: in definition of macro ‘CUDA4DNN_CHECK_CUDNN’
   22 |     ::cv::dnn::cuda4dnn::csl::cudnn::detail::check((call), CV_Func, __FILE__, __LINE__)
      |                                                     ^~~~
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/cudnn/recurrent.hpp: In instantiation of ‘size_t cv::dnn::cuda4dnn::csl::cudnn::getRNNWorkspaceSize(const cv::dnn::cuda4dnn::csl::cudnn::Handle&, const cv::dnn::cuda4dnn::csl::cudnn::RNNDescriptor<T>&, int, const cv::dnn::cuda4dnn::csl::cudnn::TensorDescriptorsArray<T>&) [with T = __half; size_t = long unsigned int]’:
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:528:58:   required from ‘cv::dnn::cuda4dnn::csl::LSTM<T>::LSTM(cv::dnn::cuda4dnn::csl::cudnn::Handle, const cv::dnn::cuda4dnn::csl::LSTM<T>::params_type&) [with T = __half]’
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/recurrent_cells.hpp:48:21:   required from ‘cv::dnn::cuda4dnn::LSTMOp<T>::LSTMOp(cv::dnn::cuda4dnn::csl::Stream, cv::dnn::cuda4dnn::csl::cudnn::Handle, const cv::Mat&, const cv::Mat&, const cv::Mat&, const cv::dnn::cuda4dnn::RNNConfiguration&) [with T = __half]’
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../../op_cuda.hpp:194:37:   required from ‘cv::Ptr<cv::dnn::dnn4_v20230620::BackendNode> cv::dnn::make_cuda_node(int, Args&& ...) [with NodeType = cv::dnn::cuda4dnn::LSTMOp; Args = {cv::dnn::cuda4dnn::csl::Stream, cv::dnn::cuda4dnn::csl::cudnn::Handle, cv::Mat&, cv::Mat&, cv::Mat&, cv::dnn::cuda4dnn::RNNConfiguration&}]’
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/recurrent_layers.cpp:766:55:   required from here
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/cudnn/recurrent.hpp:166:50: error: ‘cudnnGetRNNWorkspaceSize’ was not declared in this scope; did you mean ‘cudnnGetRNNWeightSpaceSize’?
  166 |     CUDA4DNN_CHECK_CUDNN(cudnnGetRNNWorkspaceSize(handle.get(), rnnDesc.get(), seqLength,
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../../cuda4dnn/csl/cudnn/cudnn.hpp:22:53: note: in definition of macro ‘CUDA4DNN_CHECK_CUDNN’
   22 |     ::cv::dnn::cuda4dnn::csl::cudnn::detail::check((call), CV_Func, __FILE__, __LINE__)
      |                                                     ^~~~
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/cudnn/recurrent.hpp: In instantiation of ‘cv::dnn::cuda4dnn::csl::cudnn::RNNDescriptor<T>::RNNDescriptor(const cv::dnn::cuda4dnn::csl::cudnn::Handle&, cv::dnn::cuda4dnn::csl::cudnn::RNNDescriptor<T>::RNNMode, int, int, bool, const cv::dnn::cuda4dnn::csl::cudnn::DropoutDescriptor&) [with T = float]’:
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:516:23:   required from ‘cv::dnn::cuda4dnn::csl::LSTM<T>::LSTM(cv::dnn::cuda4dnn::csl::cudnn::Handle, const cv::dnn::cuda4dnn::csl::LSTM<T>::params_type&) [with T = float]’
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/recurrent_cells.hpp:48:21:   required from ‘cv::dnn::cuda4dnn::LSTMOp<T>::LSTMOp(cv::dnn::cuda4dnn::csl::Stream, cv::dnn::cuda4dnn::csl::cudnn::Handle, const cv::Mat&, const cv::Mat&, const cv::Mat&, const cv::dnn::cuda4dnn::RNNConfiguration&) [with T = float]’
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../../op_cuda.hpp:196:37:   required from ‘cv::Ptr<cv::dnn::dnn4_v20230620::BackendNode> cv::dnn::make_cuda_node(int, Args&& ...) [with NodeType = cv::dnn::cuda4dnn::LSTMOp; Args = {cv::dnn::cuda4dnn::csl::Stream, cv::dnn::cuda4dnn::csl::cudnn::Handle, cv::Mat&, cv::Mat&, cv::Mat&, cv::dnn::cuda4dnn::RNNConfiguration&}]’
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/recurrent_layers.cpp:766:55:   required from here
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/cudnn/recurrent.hpp:122:58: error: ‘cudnnSetRNNDescriptor_v6’ was not declared in this scope; did you mean ‘cudnnSetRNNDescriptor_v8’?
  122 |             CUDA4DNN_CHECK_CUDNN(cudnnSetRNNDescriptor_v6(
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../../cuda4dnn/csl/cudnn/cudnn.hpp:22:53: note: in definition of macro ‘CUDA4DNN_CHECK_CUDNN’
   22 |     ::cv::dnn::cuda4dnn::csl::cudnn::detail::check((call), CV_Func, __FILE__, __LINE__)
      |                                                     ^~~~
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/cudnn/recurrent.hpp: In instantiation of ‘size_t cv::dnn::cuda4dnn::csl::cudnn::getRNNWorkspaceSize(const cv::dnn::cuda4dnn::csl::cudnn::Handle&, const cv::dnn::cuda4dnn::csl::cudnn::RNNDescriptor<T>&, int, const cv::dnn::cuda4dnn::csl::cudnn::TensorDescriptorsArray<T>&) [with T = float; size_t = long unsigned int]’:
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:528:58:   required from ‘cv::dnn::cuda4dnn::csl::LSTM<T>::LSTM(cv::dnn::cuda4dnn::csl::cudnn::Handle, const cv::dnn::cuda4dnn::csl::LSTM<T>::params_type&) [with T = float]’
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/recurrent_cells.hpp:48:21:   required from ‘cv::dnn::cuda4dnn::LSTMOp<T>::LSTMOp(cv::dnn::cuda4dnn::csl::Stream, cv::dnn::cuda4dnn::csl::cudnn::Handle, const cv::Mat&, const cv::Mat&, const cv::Mat&, const cv::dnn::cuda4dnn::RNNConfiguration&) [with T = float]’
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../../op_cuda.hpp:196:37:   required from ‘cv::Ptr<cv::dnn::dnn4_v20230620::BackendNode> cv::dnn::make_cuda_node(int, Args&& ...) [with NodeType = cv::dnn::cuda4dnn::LSTMOp; Args = {cv::dnn::cuda4dnn::csl::Stream, cv::dnn::cuda4dnn::csl::cudnn::Handle, cv::Mat&, cv::Mat&, cv::Mat&, cv::dnn::cuda4dnn::RNNConfiguration&}]’
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/recurrent_layers.cpp:766:55:   required from here
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/cudnn/recurrent.hpp:166:50: error: ‘cudnnGetRNNWorkspaceSize’ was not declared in this scope; did you mean ‘cudnnGetRNNWeightSpaceSize’?
  166 |     CUDA4DNN_CHECK_CUDNN(cudnnGetRNNWorkspaceSize(handle.get(), rnnDesc.get(), seqLength,
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../../cuda4dnn/csl/cudnn/cudnn.hpp:22:53: note: in definition of macro ‘CUDA4DNN_CHECK_CUDNN’
   22 |     ::cv::dnn::cuda4dnn::csl::cudnn::detail::check((call), CV_Func, __FILE__, __LINE__)
      |                                                     ^~~~
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/cudnn/recurrent.hpp: In instantiation of ‘void cv::dnn::cuda4dnn::csl::cudnn::LSTMForward(const cv::dnn::cuda4dnn::csl::cudnn::Handle&, const cv::dnn::cuda4dnn::csl::cudnn::RNNDescriptor<T>&, const cv::dnn::cuda4dnn::csl::cudnn::FilterDescriptor<T>&, cv::dnn::cuda4dnn::csl::DevicePtr<const T>, const cv::dnn::cuda4dnn::csl::cudnn::TensorDescriptorsArray<T>&, cv::dnn::cuda4dnn::csl::DevicePtr<const T>, const cv::dnn::cuda4dnn::csl::cudnn::TensorDescriptor<T>&, cv::dnn::cuda4dnn::csl::DevicePtr<const T>, const cv::dnn::cuda4dnn::csl::cudnn::TensorDescriptor<T>&, cv::dnn::cuda4dnn::csl::DevicePtr<const T>, int, const cv::dnn::cuda4dnn::csl::cudnn::TensorDescriptorsArray<T>&, cv::dnn::cuda4dnn::csl::DevicePtr<T>, cv::dnn::cuda4dnn::csl::DevicePtr<T>, cv::dnn::cuda4dnn::csl::WorkspaceInstance) [with T = float]’:
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:538:34:   required from ‘void cv::dnn::cuda4dnn::csl::LSTM<T>::inference(cv::dnn::cuda4dnn::csl::TensorView<T>, cv::dnn::cuda4dnn::csl::TensorSpan<T>, cv::dnn::cuda4dnn::csl::TensorSpan<T>, cv::dnn::cuda4dnn::csl::TensorView<T>, cv::dnn::cuda4dnn::csl::TensorView<T>, cv::dnn::cuda4dnn::csl::TensorView<T>, cv::dnn::cuda4dnn::csl::WorkspaceInstance) [with T = float]’
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/recurrent_cells.hpp:79:9:   required from ‘void cv::dnn::cuda4dnn::LSTMOp<T>::forward(const std::vector<cv::Ptr<cv::dnn::dnn4_v20230620::BackendWrapper> >&, const std::vector<cv::Ptr<cv::dnn::dnn4_v20230620::BackendWrapper> >&, cv::dnn::cuda4dnn::csl::Workspace&) [with T = float]’
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/recurrent_cells.hpp:63:10:   required from here
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/cudnn/recurrent.hpp:182:50: error: ‘cudnnRNNForwardInference’ was not declared in this scope
  182 |     CUDA4DNN_CHECK_CUDNN(cudnnRNNForwardInference(handle.get(), rnnDesc.get(), seqLength,
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../../cuda4dnn/csl/cudnn/cudnn.hpp:22:53: note: in definition of macro ‘CUDA4DNN_CHECK_CUDNN’
   22 |     ::cv::dnn::cuda4dnn::csl::cudnn::detail::check((call), CV_Func, __FILE__, __LINE__)
      |                                                     ^~~~
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/cudnn/recurrent.hpp: In instantiation of ‘void cv::dnn::cuda4dnn::csl::cudnn::LSTMForward(const cv::dnn::cuda4dnn::csl::cudnn::Handle&, const cv::dnn::cuda4dnn::csl::cudnn::RNNDescriptor<T>&, const cv::dnn::cuda4dnn::csl::cudnn::FilterDescriptor<T>&, cv::dnn::cuda4dnn::csl::DevicePtr<const T>, const cv::dnn::cuda4dnn::csl::cudnn::TensorDescriptorsArray<T>&, cv::dnn::cuda4dnn::csl::DevicePtr<const T>, const cv::dnn::cuda4dnn::csl::cudnn::TensorDescriptor<T>&, cv::dnn::cuda4dnn::csl::DevicePtr<const T>, const cv::dnn::cuda4dnn::csl::cudnn::TensorDescriptor<T>&, cv::dnn::cuda4dnn::csl::DevicePtr<const T>, int, const cv::dnn::cuda4dnn::csl::cudnn::TensorDescriptorsArray<T>&, cv::dnn::cuda4dnn::csl::DevicePtr<T>, cv::dnn::cuda4dnn::csl::DevicePtr<T>, cv::dnn::cuda4dnn::csl::WorkspaceInstance) [with T = __half]’:
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:538:34:   required from ‘void cv::dnn::cuda4dnn::csl::LSTM<T>::inference(cv::dnn::cuda4dnn::csl::TensorView<T>, cv::dnn::cuda4dnn::csl::TensorSpan<T>, cv::dnn::cuda4dnn::csl::TensorSpan<T>, cv::dnn::cuda4dnn::csl::TensorView<T>, cv::dnn::cuda4dnn::csl::TensorView<T>, cv::dnn::cuda4dnn::csl::TensorView<T>, cv::dnn::cuda4dnn::csl::WorkspaceInstance) [with T = __half]’
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/recurrent_cells.hpp:79:9:   required from ‘void cv::dnn::cuda4dnn::LSTMOp<T>::forward(const std::vector<cv::Ptr<cv::dnn::dnn4_v20230620::BackendWrapper> >&, const std::vector<cv::Ptr<cv::dnn::dnn4_v20230620::BackendWrapper> >&, cv::dnn::cuda4dnn::csl::Workspace&) [with T = __half]’
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/recurrent_cells.hpp:63:10:   required from here
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/cudnn/recurrent.hpp:182:50: error: ‘cudnnRNNForwardInference’ was not declared in this scope
  182 |     CUDA4DNN_CHECK_CUDNN(cudnnRNNForwardInference(handle.get(), rnnDesc.get(), seqLength,
/home/panodux/DIBR/Freeviewpoint-master/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../../cuda4dnn/csl/cudnn/cudnn.hpp:22:53: note: in definition of macro ‘CUDA4DNN_CHECK_CUDNN’
   22 |     ::cv::dnn::cuda4dnn::csl::cudnn::detail::check((call), CV_Func, __FILE__, __LINE__)
      |                                                     ^~~~
make[2]: *** [modules/dnn/CMakeFiles/opencv_dnn.dir/build.make:1164: modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/recurrent_layers.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:6152: modules/dnn/CMakeFiles/opencv_dnn.dir/all] Error 2
Scanning dependencies of target opencv_cudafilters
[ 34%] Building CXX object modules/cudafilters/CMakeFiles/opencv_cudafilters.dir/src/filtering.cpp.o
[ 34%] Linking CXX shared library ../../lib/libopencv_cudafilters.so
[ 34%] Built target opencv_cudafilters
make: *** [Makefile:163: all] Error 2

### Fix suggestion

_No response_