To start with, it might be not OpenCV related, but I found OpnCV is the one that does not detect CUDA installation.
Environment:
- Linux 4.15.0-106-generic #107-Ubuntu SMP Thu Jun 4 11:27:52 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
- OpenCV 4.3.0
- CUDA 10.2
- cuDNN 7.6.5
- GPU Quadro P2000 NVIDIA-SMI 440.33.01 Driver Version: 440.33.01
OpenCV make command:
cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D CMAKE_INSTALL_PREFIX=/usr/local \ -D INSTALL_PYTHON_EXAMPLES=OFF \ -D INSTALL_C_EXAMPLES=ON \ -D OPENCV_ENABLE_NONFREE=ON \ -D BUILD_opencv_python2=ON \ -D BUILD_opencv_python3=ON \ -D OPENCV_EXTRA_MODULES_PATH=/home/tstone10/dev/opencv_contrib/modules \ -D WITH_CUDNN=ON \ -D OPENCV_DNN_CUDA=ON \ -D ENABLE_FAST_MATH=ON \ -D CUDA_FAST_MATH=ON \ -D CUDA_ARCH_BIN=6.1 \ -D CUDA_ARCH_PTX="" \ -D CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-10.2 \ -D WITH_CUBLAS=ON \ -D BUILD_opencv_world=ON \ -D CUDA_GENERATION="" \ -D BUILD_EXAMPLES=OFF ..
When make, it states cuDNN NO and there is no CUDA in a list of libraries.
My cuDNN installed at:
/usr/local/cuda/lib64$ ls -la libcudnn*
lrwxrwxrwx 1 root root 13 Jun 19 06:50 libcudnn.so -> libcudnn.so.7
lrwxrwxrwx 1 root root 17 Jun 19 06:50 libcudnn.so.7 -> libcudnn.so.7.6.5
-rwxr-xr-x 1 root root 459633080 Jun 19 06:49 libcudnn.so.7.6.5
-rw-r--r-- 1 root root 432446664 Jun 19 06:50 libcudnn_static.a
I don't know how to attach log files from make command or from CUDA test binaries execution results.
Any help much appreciated.