Update OpenCVDetectCUDA.cmake

Add check for CUDA version >= 7.0 (currently in RC1), which drops support for arches 1.x.
pull/3763/head
Quentin Minster 10 years ago
parent f73c6e6147
commit 98d7e52b0a
  1. 2
      cmake/OpenCVDetectCUDA.cmake

@ -85,6 +85,8 @@ if(CUDA_FOUND)
else()
if(${CUDA_VERSION} VERSION_LESS "5.0")
set(__cuda_arch_bin "1.1 1.2 1.3 2.0 2.1(2.0) 3.0")
elseif(${CUDA_VERSION} VERSION_GREATER "6.5")
set(__cuda_arch_bin "2.0 2.1(2.0) 3.0 3.5")
else()
set(__cuda_arch_bin "1.1 1.2 1.3 2.0 2.1(2.0) 3.0 3.5")
endif()

Loading…
Cancel
Save