mirror of
https://github.com/opencv/opencv.git
synced 2025-06-16 14:50:52 +08:00
build with cc 6.2 on Jetson TX2
This commit is contained in:
parent
bd786f3bea
commit
9cd42650dc
@ -88,7 +88,17 @@ if(CUDA_FOUND)
|
|||||||
set(__cuda_arch_bin "3.2")
|
set(__cuda_arch_bin "3.2")
|
||||||
set(__cuda_arch_ptx "")
|
set(__cuda_arch_ptx "")
|
||||||
elseif(AARCH64)
|
elseif(AARCH64)
|
||||||
set(__cuda_arch_bin "5.3")
|
execute_process( COMMAND "${CUDA_NVCC_EXECUTABLE}" "${OpenCV_SOURCE_DIR}/cmake/checks/OpenCVDetectCudaArch.cu" "--run"
|
||||||
|
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/"
|
||||||
|
RESULT_VARIABLE _nvcc_res OUTPUT_VARIABLE _nvcc_out
|
||||||
|
ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||||
|
if(NOT _nvcc_res EQUAL 0)
|
||||||
|
message(STATUS "Automatic detection of CUDA generation failed. Going to build for all known architectures.")
|
||||||
|
set(__cuda_arch_bin "5.3 6.2")
|
||||||
|
else()
|
||||||
|
set(__cuda_arch_bin "${_nvcc_out}")
|
||||||
|
string(REPLACE "2.1" "2.1(2.0)" __cuda_arch_bin "${__cuda_arch_bin}")
|
||||||
|
endif()
|
||||||
set(__cuda_arch_ptx "")
|
set(__cuda_arch_ptx "")
|
||||||
else()
|
else()
|
||||||
if(${CUDA_VERSION} VERSION_LESS "8.0")
|
if(${CUDA_VERSION} VERSION_LESS "8.0")
|
||||||
@ -96,7 +106,6 @@ if(CUDA_FOUND)
|
|||||||
else()
|
else()
|
||||||
set(__cuda_arch_bin "2.0 3.0 3.5 3.7 5.0 5.2 6.0 6.1")
|
set(__cuda_arch_bin "2.0 3.0 3.5 3.7 5.0 5.2 6.0 6.1")
|
||||||
endif()
|
endif()
|
||||||
set(__cuda_arch_ptx "")
|
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user