opencv/modules/dnn/src/cuda4dnn/test.cpp
Yashas Samaga B L ae279966c2 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
2019-06-02 14:47:15 +03:00

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);
}