Update OpenCVDetectCUDA.cmake

Add check for CUDA version >= 7.0 (currently in RC1), which drops support for arches 1.x.
This commit is contained in:
Quentin Minster
2015-02-27 00:41:31 +01:00
parent f73c6e6147
commit 98d7e52b0a

View File

@@ -85,6 +85,8 @@ if(CUDA_FOUND)
else() else()
if(${CUDA_VERSION} VERSION_LESS "5.0") 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") 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() else()
set(__cuda_arch_bin "1.1 1.2 1.3 2.0 2.1(2.0) 3.0 3.5") set(__cuda_arch_bin "1.1 1.2 1.3 2.0 2.1(2.0) 3.0 3.5")
endif() endif()