I installed cuda first using cuda-repo-ubuntu1604-9-0-local_9.0.176-1_amd64.deb. Now I\'m trying to install OpenCV 3.3.0 But i\'m getting CMake Err
I also had to do the following in OpenCVDetectCUDA.cmake:
replace
if(${CUDA_VERSION} VERSION_LESS "8.0")
set(__cuda_arch_bin "3.0 3.5 3.7 5.0 5.2")
else()
set(__cuda_arch_bin "3.0 3.5 3.7 5.0 5.2 6.0 6.1")
endif()
with
if(${CUDA_VERSION} VERSION_LESS "8.0")
set(__cuda_arch_bin "3.0 3.5 3.7 5.0 5.2")
set(CUDA_ARCH_BIN "3.0 3.5 3.7 5.0 5.2")
else()
set(__cuda_arch_bin "3.0 3.5 3.7 5.0 5.2 6.0 6.1")
set(CUDA_ARCH_BIN "3.0 3.5 3.7 5.0 5.2 6.0 6.1")
endif()