Commit 98d7e52b authored by Quentin Minster's avatar Quentin Minster

Update OpenCVDetectCUDA.cmake

Add check for CUDA version >= 7.0 (currently in RC1), which drops support for arches 1.x.
parent f73c6e61
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment