mirror of https://github.com/AlexeyAB/darknet.git
CMakeLists.txt temporary fix for CUDA
This commit is contained in:
parent
d1ee38ca05
commit
cccc90b340
|
@ -112,7 +112,9 @@ endif()
|
|||
|
||||
if(ENABLE_CUDA)
|
||||
add_definitions(-DGPU)
|
||||
include_directories("${CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES}")
|
||||
if(NOT WIN32)
|
||||
include_directories("${CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES}")
|
||||
endif()
|
||||
if(CUDA_COMPUTE_MODEL VERSION_GREATER_EQUAL ${CUDA_COMPUTE_MODEL_75} AND CMAKE_CUDA_COMPILER_VERSION VERSION_LESS_EQUAL 9)
|
||||
message(STATUS "CUDA 10 is required for Compute Model 7.5 - Lowering settings to 7.0")
|
||||
set(CUDA_COMPUTE_MODEL ${CUDA_COMPUTE_MODEL_70})
|
||||
|
|
Loading…
Reference in New Issue