I am currently working with NVIDIA Xavier 8GB. NVIDIA does not present latest compiled OpenCV version. Thus I need to compile OpenCV with CUDNN flag.
Tried to build both OpenCV 4.2.0 and 4.5.0 but 4.2 does not support CUDNN and 4.5.0 does not see CUDNN dependencies. Also tried cmake with gui and still same result.
Also specified CUDNN path with flags below (not worked):
-DCUDNN_LIBRARY="$(pwd)/../../usr/local/cuda/lib64/libcudnn.so" \
-DCUDNN_INCLUDE_DIR="$(pwd)/../../usr/local/cuda/include/cudnn.h" \
Outputs are below;
- CMAKE Console Output (28.3 KB)
- CMakeError.log (42.6 KB)
- CMakeOutput.log (168.9 KB)
You can see CMake command below;
cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D WITH_CUDA=ON \
-D CUDA_ARCH_PTX="" \
-D CUDA_ARCH_BIN="5.3,6.2,7.2" \
-D WITH_CUBLAS=ON \
-D WITH_CUDNN=ON \
-D WITH_LIBV4L=ON \
-D ENABLE_FAST_MATH=ON \
-D CUDA_FAST_MATH=ON \
-D OPENCV_DNN_CUDA=ON \
-D ENABLE_NEON=ON \
-D WITH_QT=OFF \
-D WITH_OPENMP=ON \
-D WITH_OPENGL=ON \
-D WITH_FFMPEG=ON \
-D WITH_GSTREAMER=ON \
-D WITH_TBB=ON \
-D BUILD_TBB=ON \
-D BUILD_TESTS=OFF \
-D BUILD_opencv_python3=ON \
-D BUILD_opencv_python2=OFF \
-D BUILD_opencv_java=OFF \
-D WITH_GTK=ON \
-D BUILD_TESTS=OFF \
-D BUILD_PERF_TESTS=OFF \
-D BUILD_EXAMPLES=OFF \
-D OPENCV_ENABLE_NONFREE=ON \
-D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib-4.5.0/modules ..
Other Specifications;
- NVIDIA Xavier 8GB
- Ubuntu 18.04 - Official NVIDIA Image
- OpenCV 4.2.0 and 4.5.0
Also, How we can use JetPack to upgrade CUDNN? Downloaded from official nvidia jetpack but there is only AMD64 version which is Xavier ARM64 causes the failed dpkg installation.
Thanks for all support.