|
|
|
@ -713,14 +713,14 @@ endif() |
|
|
|
|
############################### CUDA ################################ |
|
|
|
|
|
|
|
|
|
if(WITH_CUDA) |
|
|
|
|
find_package(CUDA 3.2) |
|
|
|
|
find_package(CUDA 4.0) |
|
|
|
|
|
|
|
|
|
if(CUDA_FOUND) |
|
|
|
|
set(HAVE_CUDA 1) |
|
|
|
|
message(STATUS "CUDA detected: " ${CUDA_VERSION}) |
|
|
|
|
|
|
|
|
|
set(CUDA_ARCH_BIN "1.1 1.2 1.3 2.0" CACHE STRING "Specify 'real' GPU architectures to build binaries for, BIN(PTX) format is supported") |
|
|
|
|
set(CUDA_ARCH_PTX "1.1 1.3" CACHE STRING "Specify 'virtual' PTX architectures to build PTX intermediate code for") |
|
|
|
|
set(CUDA_ARCH_PTX "1.1 1.3" CACHE STRING "Specify 'virtual' PTX architectures to build PTX intermediate code for") |
|
|
|
|
|
|
|
|
|
string(REGEX REPLACE "\\." "" ARCH_BIN_NO_POINTS "${CUDA_ARCH_BIN}") |
|
|
|
|
string(REGEX REPLACE "\\." "" ARCH_PTX_NO_POINTS "${CUDA_ARCH_PTX}") |
|
|
|
@ -769,7 +769,10 @@ if(WITH_CUDA) |
|
|
|
|
set(OpenCV_CUDA_CC "${NVCC_FLAGS_EXTRA}") |
|
|
|
|
|
|
|
|
|
message(STATUS "CUDA NVCC flags: ${CUDA_NVCC_FLAGS}") |
|
|
|
|
endif() |
|
|
|
|
else() |
|
|
|
|
unset(CUDA_ARCH_BIN CACHE) |
|
|
|
|
unset(CUDA_ARCH_PTX CACHE) |
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|