Merge pull request #14660 from YashasSamaga:dnn-cuda-build

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
This commit is contained in:
Yashas Samaga B L
2019-06-02 11:47:15 +00:00
committed by Alexander Alekhin
parent 3ccb1d67c2
commit ae279966c2
13 changed files with 228 additions and 11 deletions

View File

@@ -33,7 +33,7 @@
# The verbose template for OpenCV module:
#
# ocv_add_module(modname <dependencies>)
# ocv_glob_module_sources(([EXCLUDE_CUDA] <extra sources&headers>)
# ocv_glob_module_sources(([EXCLUDE_OPENCL] [EXCLUDE_CUDA] <extra sources&headers>)
# or glob them manually and ocv_set_module_sources(...)
# ocv_module_include_directories(<extra include directories>)
# ocv_create_module()