Closed sic79 closed 4 years ago
Use cuda version 10.2 as specified in the opencv.sh. You can't use version 11.
Ok, I dont use Cuda 10.2 since I have updated my nvidia driver :(. "NVIDIA-SMI 450.57 Driver Version: 450.57 CUDA Version: 11.0"
The opencv script was designed for 10.2. I don't know what changes would be needed for 11.0.
Ok,thanks. Then the issue can be closed.
If I recall, I tried to compile version 11 and was never successful.
I just ran across this: https://jamesbowley.co.uk/accelerate-opencv-4-3-0-build-with-cuda-and-python-bindings/ try setting opencv version to 4.5.
@dlandon It actually worked :) Now I´m running yolov4 on Opencv 4.5.0 and CUDA 11.0, thanks for the help.
From the log: [---------| pyzm version: 0.1.30, ES version: 6.0.5 , OpenCV version: 4.5.0|------------]
Really! It was that easy? Glad I found that website.
@dlandon Well, it sure was :) Here is the logs and the changes I made to opencv.sh
Those are changes I would expect.
Hi @dlandon
I was trying to compile opencv 4.3 with the newly downloaded files from Nvidia for CUDA 11.0 but it fails to build (cuDNN: NO). When looking through the log I can see this: "Could NOT find CUDNN: Found unsuitable version "..", but required is at least "7.5" (found /usr/lib/x86_64-linux-gnu/libcudnn.so)".
Here is my install log:
cmake.log
The CXX compiler identification is GNU 7.5.0 The C compiler identification is GNU 7.5.0 Check for working CXX compiler: /usr/bin/c++ Check for working CXX compiler: /usr/bin/c++ works Detecting CXX compiler ABI info Detecting CXX compiler ABI info - done Detecting CXX compile features Detecting CXX compile features - done Check for working C compiler: /usr/bin/cc Check for working C compiler: /usr/bin/cc works Detecting C compiler ABI info Detecting C compiler ABI info - done Detecting C compile features Detecting C compile features - done Detected processor: x86_64 Found PythonInterp: /usr/bin/python3 (found suitable version "3.6.9", minimum required is "2.7") Found PythonInterp: /usr/bin/python3 (found suitable version "3.6.9", minimum required is "3.2") Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.6m.so (found suitable exact version "3.6.9") Looking for ccache - not found Performing Test HAVE_CXX_FSIGNED_CHAR Performing Test HAVE_CXX_FSIGNED_CHAR - Success Performing Test HAVE_C_FSIGNED_CHAR Performing Test HAVE_C_FSIGNED_CHAR - Success Performing Test HAVE_CXX_FFAST_MATH Performing Test HAVE_CXX_FFAST_MATH - Success Performing Test HAVE_C_FFAST_MATH Performing Test HAVE_C_FFAST_MATH - Success Performing Test HAVE_CXX_W Performing Test HAVE_CXX_W - Success Performing Test HAVE_C_W Performing Test HAVE_C_W - Success Performing Test HAVE_CXX_WALL Performing Test HAVE_CXX_WALL - Success Performing Test HAVE_C_WALL Performing Test HAVE_C_WALL - Success Performing Test HAVE_CXX_WERROR_RETURN_TYPE Performing Test HAVE_CXX_WERROR_RETURN_TYPE - Success Performing Test HAVE_C_WERROR_RETURN_TYPE Performing Test HAVE_C_WERROR_RETURN_TYPE - Success Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR - Success Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR - Failed Performing Test HAVE_CXX_WERROR_ADDRESS Performing Test HAVE_CXX_WERROR_ADDRESS - Success Performing Test HAVE_C_WERROR_ADDRESS Performing Test HAVE_C_WERROR_ADDRESS - Success Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT - Success Performing Test HAVE_C_WERROR_SEQUENCE_POINT Performing Test HAVE_C_WERROR_SEQUENCE_POINT - Success Performing Test HAVE_CXX_WFORMAT Performing Test HAVE_CXX_WFORMAT - Success Performing Test HAVE_C_WFORMAT Performing Test HAVE_C_WFORMAT - Success Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY - Success Performing Test HAVE_C_WERROR_FORMAT_SECURITY Performing Test HAVE_C_WERROR_FORMAT_SECURITY - Success Performing Test HAVE_CXX_WMISSING_DECLARATIONS Performing Test HAVE_CXX_WMISSING_DECLARATIONS - Success Performing Test HAVE_C_WMISSING_DECLARATIONS Performing Test HAVE_C_WMISSING_DECLARATIONS - Success Performing Test HAVE_CXX_WMISSING_PROTOTYPES Performing Test HAVE_CXX_WMISSING_PROTOTYPES - Failed Performing Test HAVE_C_WMISSING_PROTOTYPES Performing Test HAVE_C_WMISSING_PROTOTYPES - Success Performing Test HAVE_CXX_WSTRICT_PROTOTYPES Performing Test HAVE_CXX_WSTRICT_PROTOTYPES - Failed Performing Test HAVE_C_WSTRICT_PROTOTYPES Performing Test HAVE_C_WSTRICT_PROTOTYPES - Success Performing Test HAVE_CXX_WUNDEF Performing Test HAVE_CXX_WUNDEF - Success Performing Test HAVE_C_WUNDEF Performing Test HAVE_C_WUNDEF - Success Performing Test HAVE_CXX_WINIT_SELF Performing Test HAVE_CXX_WINIT_SELF - Success Performing Test HAVE_C_WINIT_SELF Performing Test HAVE_C_WINIT_SELF - Success Performing Test HAVE_CXX_WPOINTER_ARITH Performing Test HAVE_CXX_WPOINTER_ARITH - Success Performing Test HAVE_C_WPOINTER_ARITH Performing Test HAVE_C_WPOINTER_ARITH - Success Performing Test HAVE_CXX_WSHADOW Performing Test HAVE_CXX_WSHADOW - Success Performing Test HAVE_C_WSHADOW Performing Test HAVE_C_WSHADOW - Success Performing Test HAVE_CXX_WSIGN_PROMO Performing Test HAVE_CXX_WSIGN_PROMO - Success Performing Test HAVE_C_WSIGN_PROMO Performing Test HAVE_C_WSIGN_PROMO - Failed Performing Test HAVE_CXX_WUNINITIALIZED Performing Test HAVE_CXX_WUNINITIALIZED - Success Performing Test HAVE_C_WUNINITIALIZED Performing Test HAVE_C_WUNINITIALIZED - Success Performing Test HAVE_CXX_WSUGGEST_OVERRIDE Performing Test HAVE_CXX_WSUGGEST_OVERRIDE - Success Performing Test HAVE_C_WSUGGEST_OVERRIDE Performing Test HAVE_C_WSUGGEST_OVERRIDE - Failed Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR - Success Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR - Failed Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed Performing Test HAVE_CXX_WNO_COMMENT Performing Test HAVE_CXX_WNO_COMMENT - Success Performing Test HAVE_C_WNO_COMMENT Performing Test HAVE_C_WNO_COMMENT - Success Performing Test HAVE_CXX_WIMPLICIT_FALLTHROUGH_3 Performing Test HAVE_CXX_WIMPLICIT_FALLTHROUGH_3 - Success Performing Test HAVE_C_WIMPLICIT_FALLTHROUGH_3 Performing Test HAVE_C_WIMPLICIT_FALLTHROUGH_3 - Success Performing Test HAVE_CXX_WNO_STRICT_OVERFLOW Performing Test HAVE_CXX_WNO_STRICT_OVERFLOW - Success Performing Test HAVE_C_WNO_STRICT_OVERFLOW Performing Test HAVE_C_WNO_STRICT_OVERFLOW - Success Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION - Success Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION - Success Performing Test HAVE_CXX_WNO_LONG_LONG Performing Test HAVE_CXX_WNO_LONG_LONG - Success Performing Test HAVE_C_WNO_LONG_LONG Performing Test HAVE_C_WNO_LONG_LONG - Success Performing Test HAVE_CXX_PTHREAD Performing Test HAVE_CXX_PTHREAD - Success Performing Test HAVE_C_PTHREAD Performing Test HAVE_C_PTHREAD - Success Performing Test HAVE_CXX_FOMIT_FRAME_POINTER Performing Test HAVE_CXX_FOMIT_FRAME_POINTER - Success Performing Test HAVE_C_FOMIT_FRAME_POINTER Performing Test HAVE_C_FOMIT_FRAME_POINTER - Success Performing Test HAVE_CXX_FFUNCTION_SECTIONS Performing Test HAVE_CXX_FFUNCTION_SECTIONS - Success Performing Test HAVE_C_FFUNCTION_SECTIONS Performing Test HAVE_C_FFUNCTION_SECTIONS - Success Performing Test HAVE_CXX_FDATA_SECTIONS Performing Test HAVE_CXX_FDATA_SECTIONS - Success Performing Test HAVE_C_FDATA_SECTIONS Performing Test HAVE_C_FDATA_SECTIONS - Success Performing Test HAVE_CXX_MSSE (check file: cmake/checks/cpu_sse.cpp) Performing Test HAVE_CXX_MSSE - Success Performing Test HAVE_CXX_MSSE2 (check file: cmake/checks/cpu_sse2.cpp) Performing Test HAVE_CXX_MSSE2 - Success Performing Test HAVE_CXX_MSSE3 (check file: cmake/checks/cpu_sse3.cpp) Performing Test HAVE_CXX_MSSE3 - Success Performing Test HAVE_CXX_MSSSE3 (check file: cmake/checks/cpu_ssse3.cpp) Performing Test HAVE_CXX_MSSSE3 - Success Performing Test HAVE_CXX_MSSE4_1 (check file: cmake/checks/cpu_sse41.cpp) Performing Test HAVE_CXX_MSSE4_1 - Success Performing Test HAVE_CXX_MPOPCNT (check file: cmake/checks/cpu_popcnt.cpp) Performing Test HAVE_CXX_MPOPCNT - Success Performing Test HAVE_CXX_MSSE4_2 (check file: cmake/checks/cpu_sse42.cpp) Performing Test HAVE_CXX_MSSE4_2 - Success Performing Test HAVE_CXX_MF16C (check file: cmake/checks/cpu_fp16.cpp) Performing Test HAVE_CXX_MF16C - Success Performing Test HAVE_CXX_MFMA Performing Test HAVE_CXX_MFMA - Success Performing Test HAVE_CXX_MAVX (check file: cmake/checks/cpu_avx.cpp) Performing Test HAVE_CXX_MAVX - Success Performing Test HAVE_CXX_MAVX2 (check file: cmake/checks/cpu_avx2.cpp) Performing Test HAVE_CXX_MAVX2 - Success Performing Test HAVE_CXX_MAVX512F (check file: cmake/checks/cpu_avx512.cpp) Performing Test HAVE_CXX_MAVX512F - Success Performing Test HAVE_CXX_MAVX512F_MAVX512CD (check file: cmake/checks/cpu_avx512common.cpp) Performing Test HAVE_CXX_MAVX512F_MAVX512CD - Success Performing Test HAVE_CXX_MAVX512F_MAVX512CD_MAVX512VL_MAVX512BW_MAVX512DQ (check file: cmake/checks/cpu_avx512skx.cpp) Performing Test HAVE_CXX_MAVX512F_MAVX512CD_MAVX512VL_MAVX512BW_MAVX512DQ - Success Performing Test HAVE_CPU_BASELINE_FLAGS Performing Test HAVE_CPU_BASELINE_FLAGS - Success Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_1 Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_1 - Success Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_2 Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_2 - Success Performing Test HAVE_CPU_DISPATCH_FLAGS_FP16 Performing Test HAVE_CPU_DISPATCH_FLAGS_FP16 - Success Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX - Success Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX2 Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX2 - Success Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX512_SKX Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX512_SKX - Success Performing Test HAVE_CXX_FVISIBILITY_HIDDEN Performing Test HAVE_CXX_FVISIBILITY_HIDDEN - Success Performing Test HAVE_C_FVISIBILITY_HIDDEN Performing Test HAVE_C_FVISIBILITY_HIDDEN - Success Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN - Success Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN - Failed Performing Test HAVE_LINK_AS_NEEDED Performing Test HAVE_LINK_AS_NEEDED - Success Looking for pthread.h Looking for pthread.h - found Looking for posix_memalign Looking for posix_memalign - found Looking for malloc.h Looking for malloc.h - found Looking for memalign Looking for memalign - found Check if the system is big endian Searching 16 bit integer Looking for sys/types.h Looking for sys/types.h - found Looking for stdint.h Looking for stdint.h - found Looking for stddef.h Looking for stddef.h - found Check size of unsigned short Check size of unsigned short - done Using unsigned short Check if the system is big endian - little endian Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found suitable version "1.2.11", minimum required is "1.2.3") Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so Found TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (found version "4.0.9") Performing Test HAVE_C_STD_C99 Performing Test HAVE_C_STD_C99 - Success Performing Test HAVE_C_WNO_UNUSED_VARIABLE Performing Test HAVE_C_WNO_UNUSED_VARIABLE - Success Performing Test HAVE_C_WNO_UNUSED_FUNCTION Performing Test HAVE_C_WNO_UNUSED_FUNCTION - Success Performing Test HAVE_C_WNO_SHADOW Performing Test HAVE_C_WNO_SHADOW - Success Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED - Success Performing Test HAVE_C_WNO_MISSING_PROTOTYPES Performing Test HAVE_C_WNO_MISSING_PROTOTYPES - Success Performing Test HAVE_C_WNO_MISSING_DECLARATIONS Performing Test HAVE_C_WNO_MISSING_DECLARATIONS - Success Performing Test HAVE_C_WNO_IMPLICIT_FALLTHROUGH Performing Test HAVE_C_WNO_IMPLICIT_FALLTHROUGH - Success Could NOT find OpenJPEG (minimal suitable version: 2.0, recommended version >= 2.3.1) Could NOT find Jasper (missing: JASPER_LIBRARIES JASPER_INCLUDE_DIR) Performing Test HAVE_C_WNO_IMPLICIT_FUNCTION_DECLARATION Performing Test HAVE_C_WNO_IMPLICIT_FUNCTION_DECLARATION - Success Performing Test HAVE_C_WNO_UNINITIALIZED Performing Test HAVE_C_WNO_UNINITIALIZED - Success Performing Test HAVE_C_WNO_UNUSED_BUT_SET_PARAMETER Performing Test HAVE_C_WNO_UNUSED_BUT_SET_PARAMETER - Success Performing Test HAVE_C_WNO_UNUSED Performing Test HAVE_C_WNO_UNUSED - Success Performing Test HAVE_C_WNO_SIGN_COMPARE Performing Test HAVE_C_WNO_SIGN_COMPARE - Success Performing Test HAVE_C_WNO_POINTER_COMPARE Performing Test HAVE_C_WNO_POINTER_COMPARE - Success Performing Test HAVE_C_WNO_ABSOLUTE_VALUE Performing Test HAVE_C_WNO_ABSOLUTE_VALUE - Failed Performing Test HAVE_C_WNO_UNUSED_PARAMETER Performing Test HAVE_C_WNO_UNUSED_PARAMETER - Success Performing Test HAVE_C_WNO_STRICT_PROTOTYPES Performing Test HAVE_C_WNO_STRICT_PROTOTYPES - Success Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11") Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.6.34") Looking for /usr/include/libpng/png.h Looking for /usr/include/libpng/png.h - found Looking for semaphore.h Looking for semaphore.h - found Performing Test HAVE_CXX_WNO_SHADOW Performing Test HAVE_CXX_WNO_SHADOW - Success Performing Test HAVE_CXX_WNO_UNUSED Performing Test HAVE_CXX_WNO_UNUSED - Success Performing Test HAVE_CXX_WNO_SIGN_COMPARE Performing Test HAVE_CXX_WNO_SIGN_COMPARE - Success Performing Test HAVE_CXX_WNO_UNDEF Performing Test HAVE_CXX_WNO_UNDEF - Success Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS - Success Performing Test HAVE_CXX_WNO_UNINITIALIZED Performing Test HAVE_CXX_WNO_UNINITIALIZED - Success Performing Test HAVE_CXX_WNO_SWITCH Performing Test HAVE_CXX_WNO_SWITCH - Success Performing Test HAVE_CXX_WNO_PARENTHESES Performing Test HAVE_CXX_WNO_PARENTHESES - Success Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS - Success Performing Test HAVE_CXX_WNO_EXTRA Performing Test HAVE_CXX_WNO_EXTRA - Success Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS - Success Performing Test HAVE_CXX_WNO_MISLEADING_INDENTATION Performing Test HAVE_CXX_WNO_MISLEADING_INDENTATION - Success Performing Test HAVE_CXX_WNO_DEPRECATED Performing Test HAVE_CXX_WNO_DEPRECATED - Success Performing Test HAVE_CXX_WNO_SUGGEST_OVERRIDE Performing Test HAVE_CXX_WNO_SUGGEST_OVERRIDE - Success Performing Test HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE Performing Test HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE - Failed Performing Test HAVE_CXX_WNO_IMPLICIT_FALLTHROUGH Performing Test HAVE_CXX_WNO_IMPLICIT_FALLTHROUGH - Success Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_COMPARE Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_COMPARE - Success Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES - Failed Performing Test HAVE_CXX_WNO_REORDER Performing Test HAVE_CXX_WNO_REORDER - Success Performing Test HAVE_CXX_WNO_UNUSED_RESULT Performing Test HAVE_CXX_WNO_UNUSED_RESULT - Success Checking for module 'gtk+-3.0' Found gtk+-3.0, version 3.22.30 Checking for module 'gthread-2.0' Found gthread-2.0, version 2.56.4 IPPICV: Download: ippicv_2020_lnx_intel64_20191018_general.tgz found Intel IPP (ICV version): 2020.0.0 [2020.0.0 Gold] at: /root/opencv/build/3rdparty/ippicv/ippicv_lnx/icv found Intel IPP Integration Wrappers sources: 2020.0.0 at: /root/opencv/build/3rdparty/ippicv/ippicv_lnx/iw Looking for pthread.h Looking for pthread.h - found Looking for pthread_create Looking for pthread_create - not found Looking for pthread_create in pthreads Looking for pthread_create in pthreads - not found Looking for pthread_create in pthread Looking for pthread_create in pthread - found Found Threads: TRUE Could NOT find CUDNN: Found unsuitable version "..", but required is at least "7.5" (found /usr/lib/x86_64-linux-gnu/libcudnn.so) CUDA detected: 11.0 CUDA NVCC target flags: -gencode;arch=compute_30,code=sm_30;-gencode;arch=compute_35,code=sm_35;-gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_52,code=sm_52;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-D_FORCE_INLINES Could not find OpenBLAS include. Turning OpenBLAS_FOUND off Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off Could NOT find Atlas (missing: Atlas_CLAPACK_INCLUDE_DIR) Looking for dgemm_ Looking for dgemm_ - found A library with BLAS API found. Looking for cheev_ Looking for cheev_ - found A library with LAPACK API found. Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER - Success Performing Test HAVE_CXX_WNO_UNUSED_LOCAL_TYPEDEFS Performing Test HAVE_CXX_WNO_UNUSED_LOCAL_TYPEDEFS - Success Performing Test HAVE_CXX_WNO_SIGN_PROMO Performing Test HAVE_CXX_WNO_SIGN_PROMO - Success Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_UNDEFINED_COMPARE Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_UNDEFINED_COMPARE - Failed Performing Test HAVE_CXX_WNO_IGNORED_QUALIFIERS Performing Test HAVE_CXX_WNO_IGNORED_QUALIFIERS - Success Performing Test HAVE_CXX_WNO_UNUSED_FUNCTION Performing Test HAVE_CXX_WNO_UNUSED_FUNCTION - Success Performing Test HAVE_CXX_WNO_UNUSED_CONST_VARIABLE Performing Test HAVE_CXX_WNO_UNUSED_CONST_VARIABLE - Success Performing Test HAVE_CXX_WNO_SHORTEN_64_TO_32 Performing Test HAVE_CXX_WNO_SHORTEN_64_TO_32 - Failed Performing Test HAVE_CXX_WNO_INVALID_OFFSETOF Performing Test HAVE_CXX_WNO_INVALID_OFFSETOF - Success Performing Test HAVE_CXX_WNO_ENUM_COMPARE_SWITCH Performing Test HAVE_CXX_WNO_ENUM_COMPARE_SWITCH - Failed Could NOT find JNI (missing: JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file Looking for dlerror in dl Looking for dlerror in dl - found Performing Test HAVE_C_WNO_UNDEF Performing Test HAVE_C_WNO_UNDEF - Success ADE: Download: v0.1.1f.zip OpenCV Python: during development append to PYTHONPATH: /root/opencv/build/python_loader Performing Test HAVE_CXX_WNO_STRICT_ALIASING Performing Test HAVE_CXX_WNO_STRICT_ALIASING - Success Checking for modules 'libavcodec;libavformat;libavutil;libswscale' Found libavcodec, version 58.91.100 Found libavformat, version 58.45.100 Found libavutil, version 56.51.100 Found libswscale, version 5.7.100 Checking for module 'libavresample' No package 'libavresample' found Checking for module 'gstreamer-base-1.0' No package 'gstreamer-base-1.0' found Checking for module 'gstreamer-app-1.0' No package 'gstreamer-app-1.0' found Checking for module 'gstreamer-riff-1.0' No package 'gstreamer-riff-1.0' found Checking for module 'gstreamer-pbutils-1.0' No package 'gstreamer-pbutils-1.0' found Checking for module 'libdc1394-2' No package 'libdc1394-2' found Module opencv_alphamat disabled because the following dependencies are not found: Eigen Caffe: NO Protobuf: NO Glog: NO Performing Test HAVE_CXX_WNO_UNUSED_VARIABLE Performing Test HAVE_CXX_WNO_UNUSED_VARIABLE - Success Performing Test HAVE_CXX_WNO_ENUM_COMPARE Performing Test HAVE_CXX_WNO_ENUM_COMPARE - Success Checking for module 'freetype2' Found freetype2, version 21.0.15 Checking for module 'harfbuzz' Found harfbuzz, version 1.7.2 freetype2: YES (ver 21.0.15) harfbuzz: YES (ver 1.7.2) Could NOT find HDF5 (missing: HDF5_LIBRARIES HDF5_INCLUDE_DIRS) (found version "") Module opencv_ovis disabled because OGRE3D was not found No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available. Failed to find installed gflags CMake configuration, searching for gflags build directories exported with CMake. Failed to find gflags - Failed to find an installed/exported CMake configuration for gflags, will perform search for installed gflags components. Failed to find gflags - Could not find gflags include directory, set GFLAGS_INCLUDE_DIR to directory containing gflags/gflags.h Failed to find glog - Could not find glog include directory, set GLOG_INCLUDE_DIR to directory containing glog/logging.h Module opencv_sfm disabled because the following dependencies are not found: Eigen Glog/Gflags Checking for module 'tesseract' No package 'tesseract' found Tesseract: NO Allocator metrics storage type: 'long long' Performing Test HAVE_CXX_WNO_UNUSED_BUT_SET_VARIABLE Performing Test HAVE_CXX_WNO_UNUSED_BUT_SET_VARIABLE - Success Registering hook 'INIT_MODULE_SOURCES_opencv_dnn': /root/opencv/modules/dnn/cmake/hooks/INIT_MODULE_SOURCES_opencv_dnn.cmake opencv_dnn: filter out cuda4dnn source code Performing Test HAVE_CXX_WNO_OVERLOADED_VIRTUAL Performing Test HAVE_CXX_WNO_OVERLOADED_VIRTUAL - Success xfeatures2d/boostdesc: Download: boostdesc_bgm.i xfeatures2d/boostdesc: Download: boostdesc_bgm_bi.i xfeatures2d/boostdesc: Download: boostdesc_bgm_hd.i xfeatures2d/boostdesc: Download: boostdesc_binboost_064.i xfeatures2d/boostdesc: Download: boostdesc_binboost_128.i xfeatures2d/boostdesc: Download: boostdesc_binboost_256.i xfeatures2d/boostdesc: Download: boostdesc_lbgm.i xfeatures2d/vgg: Download: vgg_generated_48.i xfeatures2d/vgg: Download: vgg_generated_64.i xfeatures2d/vgg: Download: vgg_generated_80.i xfeatures2d/vgg: Download: vgg_generated_120.i data: Download: face_landmark_model.dat NVIDIA_OPTICAL_FLOW: Download: 79c6cee80a2df9a196f20afd6b598a9810964c32.zip Performing Test HAVE_CXX_WNO_UNUSED_PRIVATE_FIELD Performing Test HAVE_CXX_WNO_UNUSED_PRIVATE_FIELD - Failed General configuration for OpenCV 4.3.0 ===================================== Version control: unknown Extra modules: Location (extra): /root/opencv_contrib/modules Version control (extra): unknown Platform: Timestamp: 2020-10-25T10:33:15Z Host: Linux 5.7.8-Unraid x86_64 CMake: 3.10.2 CMake generator: Unix Makefiles CMake build tool: /usr/bin/make Configuration: RELEASE CPU/HW features: Baseline: SSE SSE2 SSE3 requested: SSE3 Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX AVX2 AVX512_SKX requested: SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX SSE4_1 (16 files): + SSSE3 SSE4_1 SSE4_2 (2 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX AVX (5 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX AVX2 (30 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 AVX512_SKX (6 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 AVX_512F AVX512_COMMON AVX512_SKX C/C++: Built as dynamic libs?: YES C++ standard: 11 C++ Compiler: /usr/bin/c++ (ver 7.5.0) C++ flags (Release): -fsigned-char -ffast-math -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG C++ flags (Debug): -fsigned-char -ffast-math -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG C Compiler: /usr/bin/cc C flags (Release): -fsigned-char -ffast-math -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG C flags (Debug): -fsigned-char -ffast-math -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG Linker flags (Release): -Wl,exclude-libs,libippicv.a -Wl,exclude-libs,libippiw.a -Wl,gc-sections -Wl,as-needed Linker flags (Debug): -Wl,exclude-libs,libippicv.a -Wl,exclude-libs,libippiw.a -Wl,gc-sections -Wl,as-needed ccache: NO Precompiled headers: NO Extra dependencies: m pthread cudart_static -lpthread dl rt nppc nppial nppicc CUDA_nppicom_LIBRARY-NOTFOUND nppidei nppif nppig nppim nppist nppisu nppitc npps cublas cufft -L/usr/local/cuda/lib64 -L/usr/lib/x86_64-linux-gnu 3rdparty dependencies: OpenCV modules: To be built: aruco bgsegm bioinspired calib3d ccalib core cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev datasets dnn dnn_objdetect dnn_superres dpm face features2d flann freetype fuzzy gapi hfs highgui img_hash imgcodecs imgproc intensity_transform line_descriptor ml objdetect optflow phase_unwrapping photo plot python3 quality rapid reg rgbd saliency shape stereo stitching structured_light superres surface_matching text tracking ts video videoio videostab xfeatures2d ximgproc xobjdetect xphoto Disabled: world Disabled by dependency: - Unavailable: alphamat cnn_3dobj cvv hdf java js matlab ovis python2 sfm viz Applications: tests perf_tests apps Documentation: NO Non-free algorithms: YES GUI: GTK+: YES (ver 3.22.30) GThread : YES (ver 2.56.4) GtkGlExt: NO VTK support: NO Media I/O: ZLib: /usr/lib/x86_64-linux-gnu/libz.so (ver 1.2.11) JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (ver 80) WEBP: build (ver encoder: 0x020f) PNG: /usr/lib/x86_64-linux-gnu/libpng.so (ver 1.6.34) TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (ver 42 / 4.0.9) JPEG 2000: build Jasper (ver 1.900.1) OpenEXR: build (ver 2.3.0) HDR: YES SUNRASTER: YES PXM: YES PFM: YES Video I/O: DC1394: NO FFMPEG: YES avcodec: YES (58.91.100) avformat: YES (58.45.100) avutil: YES (56.51.100) swscale: YES (5.7.100) avresample: NO GStreamer: NO v4l/v4l2: YES (linux/videodev2.h) Parallel framework: pthreads Trace: YES (with Intel ITT) Other third-party libraries: Intel IPP: 2020.0.0 Gold [2020.0.0] at: /root/opencv/build/3rdparty/ippicv/ippicv_lnx/icv Intel IPP IW: sources (2020.0.0) at: /root/opencv/build/3rdparty/ippicv/ippicv_lnx/iw Lapack: NO Eigen: NO Custom HAL: NO Protobuf: build (3.5.1) NVIDIA CUDA: YES (ver 11.0, CUFFT CUBLAS FAST_MATH) NVIDIA GPU arch: 30 35 37 50 52 60 61 70 75 NVIDIA PTX archs: cuDNN: NO OpenCL: YES (no extra features) Include path: /root/opencv/3rdparty/include/opencl/1.2 Link libraries: Dynamic load Python 3: Interpreter: /usr/bin/python3 (ver 3.6.9) Libraries: /usr/lib/x86_64-linux-gnu/libpython3.6m.so (ver 3.6.9) numpy: /usr/local/lib/python3.6/dist-packages/numpy/core/include (ver 1.19.2) install path: lib/python3.6/dist-packages/cv2/python-3.6 Python (for build): /usr/bin/python3 Java: ant: NO JNI: NO Java wrappers: NO Java tests: NO Install to: /usr/local - Configuring incomplete, errors occurred! See also "/root/opencv/build/CMakeFiles/CMakeOutput.log". See also "/root/opencv/build/CMakeFiles/CMakeError.log".And here´s the nvidia-smi.log
nvidia-smi.log
Sun Oct 25 11:31:04 2020 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 450.57 Driver Version: 450.57 CUDA Version: 11.0 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |===============================+======================+======================| | 0 Quadro P4000 Off | 00000000:03:00.0 Off | N/A | | 46% 28C P8 4W / 105W | 2MiB / 8119MiB | 0% Default | | | | N/A | +-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=============================================================================| | No running processes found | +-----------------------------------------------------------------------------+And this is the modification I have done in opencv.sh
opencv.sh
CUDNN_RUN=libcudnn8_8.0.4.30-1+cuda11.0_amd64.deb CUDNN_DEV=libcudnn8-dev_8.0.4.30-1+cuda11.0_amd64.deb CUDA_TOOL=cuda-repo-ubuntu1804-11-0-local_11.0.2-450.51.05-1_amd64.deb CUDA_PIN=cuda-ubuntu1804.pin CUDA_KEY=/var/cuda-repo-ubuntu1804-11-0-local/7fa2af80.pub CUDA_VER=11.0Maybe you can see whats going on in the logs?