############################### CUDA ################################\r
\r
if(WITH_CUDA)\r
- find_package(CUDA 3.2)\r
+ find_package(CUDA 4.0)\r
\r
if(CUDA_FOUND)\r
set(HAVE_CUDA 1)\r
message(STATUS "CUDA detected: " ${CUDA_VERSION})\r
\r
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")\r
- set(CUDA_ARCH_PTX "1.1 1.3" CACHE STRING "Specify 'virtual' PTX architectures to build PTX intermediate code for") \r
+ set(CUDA_ARCH_PTX "1.1 1.3" CACHE STRING "Specify 'virtual' PTX architectures to build PTX intermediate code for")\r
\r
string(REGEX REPLACE "\\." "" ARCH_BIN_NO_POINTS "${CUDA_ARCH_BIN}")\r
string(REGEX REPLACE "\\." "" ARCH_PTX_NO_POINTS "${CUDA_ARCH_PTX}")\r
set(OpenCV_CUDA_CC "${NVCC_FLAGS_EXTRA}")\r
\r
message(STATUS "CUDA NVCC flags: ${CUDA_NVCC_FLAGS}")\r
- endif()\r
+ else()\r
+ unset(CUDA_ARCH_BIN CACHE)\r
+ unset(CUDA_ARCH_PTX CACHE) \r
+ endif() \r
endif()\r
\r
\r
include_directories("src/nvidia/core" "src/nvidia/NPP_staging")
endif()
-if (HAVE_CUDA)
- #get_filename_component(_path_to_findnpp "${CMAKE_CURRENT_LIST_FILE}" PATH)
- #set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${_path_to_findnpp})
- #find_package(NPP 3.2.16 REQUIRED)
- #message(STATUS "NPP detected: " ${NPP_VERSION})
-
+if (HAVE_CUDA)
include_directories(${CUDA_INCLUDE_DIRS})
if (UNIX OR APPLE)