|
|
|
@ -79,14 +79,12 @@ if(CUDA_FOUND) |
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
if(NOT DEFINED __cuda_arch_bin) |
|
|
|
|
if(ANDROID) |
|
|
|
|
if(ARM) |
|
|
|
|
set(__cuda_arch_bin "3.2") |
|
|
|
|
set(__cuda_arch_ptx "") |
|
|
|
|
elseif(AARCH64) |
|
|
|
|
set(__cuda_arch_bin "5.3") |
|
|
|
|
set(__cuda_arch_ptx "") |
|
|
|
|
endif() |
|
|
|
|
if(ARM) |
|
|
|
|
set(__cuda_arch_bin "3.2") |
|
|
|
|
set(__cuda_arch_ptx "") |
|
|
|
|
elseif(AARCH64) |
|
|
|
|
set(__cuda_arch_bin "5.3") |
|
|
|
|
set(__cuda_arch_ptx "") |
|
|
|
|
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") |
|
|
|
@ -200,6 +198,10 @@ if(CUDA_FOUND) |
|
|
|
|
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} -Xcompiler -fno-finite-math-only) |
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
if(CMAKE_CROSSCOMPILING AND (ARM OR AARCH64)) |
|
|
|
|
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} -Xlinker --unresolved-symbols=ignore-in-shared-libs) |
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
# disabled because of multiple warnings during building nvcc auto generated files |
|
|
|
|
if(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_GCC_REGEX_VERSION VERSION_GREATER "4.6.0") |
|
|
|
|
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wunused-but-set-variable) |
|
|
|
|