Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
d635a7ee
Commit
d635a7ee
authored
Jul 22, 2016
by
Davis King
Browse files
Improved cmake warning messages about cuDNN
parent
73156146
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
dlib/CMakeLists.txt
dlib/CMakeLists.txt
+6
-5
No files found.
dlib/CMakeLists.txt
View file @
d635a7ee
...
...
@@ -507,11 +507,12 @@ if (NOT TARGET dlib)
else
()
set
(
DLIB_USE_CUDA OFF CACHE STRING
${
DLIB_USE_BLAS_STR
}
FORCE
)
toggle_preprocessor_switch
(
DLIB_USE_CUDA
)
if
(
COMPILER_CAN_DO_CPP_11
)
if
(
NOT cudnn OR NOT cudnn_include OR NOT cudnn_test_compile_worked
)
message
(
STATUS
"*** cuDNN V5.0 OR GREATER NOT FOUND. DLIB WILL NOT USE CUDA. ***"
)
message
(
STATUS
"*** If you have cuDNN then set CMAKE_PREFIX_PATH to include cuDNN's folder."
)
endif
()
if
(
NOT COMPILER_CAN_DO_CPP_11
)
else
(
)
message
(
STATUS
"*** Dlib CUDA support requires C++11 but your compiler doesn't support it. ***"
)
endif
()
endif
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment