CMake Error: Variables are set to NOTFOUND

后端 未结 10 1665
隐瞒了意图╮
隐瞒了意图╮ 2020-11-28 05:22

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

10条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-28 06:14

    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()
    

提交回复
热议问题