mirror of
https://github.com/opencv/opencv.git
synced 2025-08-01 10:26:53 +08:00

add cuDNN dependency and setup build for cuda4dnn (#14660) * update cmake for cuda4dnn - Adds FindCUDNN - Adds new options: * WITH_CUDA * OPENCV_DNN_CUDA - Adds CUDA4DNN preprocessor symbol for the DNN module * FIX: append EXCLUDE_CUDA instead of overwrite * remove cuDNN dependency for user apps * fix unused variable warning
19 lines
497 B
C++
19 lines
497 B
C++
// This file is part of OpenCV project.
|
|
// It is subject to the license terms in the LICENSE file found in the top-level directory
|
|
// of this distribution and at http://opencv.org/license.html.
|
|
|
|
// this file is a stub and will be removed once actual code is added
|
|
|
|
#include "../precomp.hpp"
|
|
|
|
#ifndef HAVE_CUDA
|
|
# error "CUDA4DNN should be enabled iff CUDA and cuDNN were found"
|
|
#endif
|
|
|
|
#include <cudnn.h>
|
|
|
|
void cuda4dnn_build_test_func() {
|
|
auto ver = cudnnGetVersion();
|
|
CV_UNUSED(ver);
|
|
}
|