1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 00:03:03 +04:00

make the fail safe path actually safe

* use only supported CC in the list
  * workaround of #17526
This commit is contained in:
Tomoaki Teshima
2020-06-21 07:20:47 +09:00
parent 2b98aa403e
commit 95ac650af6
+6 -1
View File
@@ -162,7 +162,12 @@ if(CUDA_FOUND)
if(NOT _nvcc_res EQUAL 0) if(NOT _nvcc_res EQUAL 0)
message(STATUS "Automatic detection of CUDA generation failed. Going to build for all known architectures.") message(STATUS "Automatic detection of CUDA generation failed. Going to build for all known architectures.")
# TX1 (5.3) TX2 (6.2) Xavier (7.2) V100 (7.0) # TX1 (5.3) TX2 (6.2) Xavier (7.2) V100 (7.0)
set(__cuda_arch_bin "5.3 6.2 7.2 7.0") ocv_filter_available_architecture(__cuda_arch_bin
5.3
6.2
7.2
7.0
)
else() else()
set(__cuda_arch_bin "${_nvcc_out}") set(__cuda_arch_bin "${_nvcc_out}")
endif() endif()