Skip to content

Commit 95ac650

Browse files
committed
make the fail safe path actually safe
* use only supported CC in the list * workaround of opencv#17526
1 parent 2b98aa4 commit 95ac650

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cmake/OpenCVDetectCUDA.cmake

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,12 @@ if(CUDA_FOUND)
162162
if(NOT _nvcc_res EQUAL 0)
163163
message(STATUS "Automatic detection of CUDA generation failed. Going to build for all known architectures.")
164164
# TX1 (5.3) TX2 (6.2) Xavier (7.2) V100 (7.0)
165-
set(__cuda_arch_bin "5.3 6.2 7.2 7.0")
165+
ocv_filter_available_architecture(__cuda_arch_bin
166+
5.3
167+
6.2
168+
7.2
169+
7.0
170+
)
166171
else()
167172
set(__cuda_arch_bin "${_nvcc_out}")
168173
endif()

0 commit comments

Comments
 (0)