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
b9f4da55
Commit
b9f4da55
authored
Jun 21, 2020
by
Davis King
Browse files
Make cuDNN test project failure print a message saying exactly why it failed.
parent
facefa02
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
dlib/CMakeLists.txt
dlib/CMakeLists.txt
+12
-4
No files found.
dlib/CMakeLists.txt
View file @
b9f4da55
...
@@ -687,19 +687,27 @@ if (NOT TARGET dlib)
...
@@ -687,19 +687,27 @@ if (NOT TARGET dlib)
message
(
STATUS
"*****************************************************************************************************************"
)
message
(
STATUS
"*****************************************************************************************************************"
)
message
(
STATUS
"*** CUDA was found but your compiler failed to compile a simple CUDA program so dlib isn't going to use CUDA. "
)
message
(
STATUS
"*** CUDA was found but your compiler failed to compile a simple CUDA program so dlib isn't going to use CUDA. "
)
message
(
STATUS
"*** The output of the failed CUDA test compile is shown below: "
)
message
(
STATUS
"*** The output of the failed CUDA test compile is shown below: "
)
message
(
STATUS
"*** "
)
message
(
STATUS
"***
${
try_compile_output_message
}
"
)
message
(
STATUS
"***
${
try_compile_output_message
}
"
)
message
(
STATUS
"*****************************************************************************************************************"
)
message
(
STATUS
"*****************************************************************************************************************"
)
else
()
else
()
message
(
STATUS
"
C
heck
ing
if you have the right version of cuDNN installed."
)
message
(
STATUS
"
Building a cuDNN test project to c
heck if you have the right version of cuDNN installed.
..
"
)
try_compile
(
cudnn_test_compile_worked
try_compile
(
cudnn_test_compile_worked
${
PROJECT_BINARY_DIR
}
/cudnn_test_build
${
PROJECT_BINARY_DIR
}
/cudnn_test_build
${
PROJECT_SOURCE_DIR
}
/cmake_utils/test_for_cudnn cudnn_test
${
PROJECT_SOURCE_DIR
}
/cmake_utils/test_for_cudnn cudnn_test
CMAKE_FLAGS
${
CUDA_TEST_CMAKE_FLAGS
}
CMAKE_FLAGS
${
CUDA_TEST_CMAKE_FLAGS
}
OUTPUT_VARIABLE try_compile_output_message
)
)
if
(
NOT cudnn_test_compile_worked
)
if
(
NOT cudnn_test_compile_worked
)
message
(
STATUS
"*** Found cuDNN, but it looks like the wrong version so dlib will not use it. ***"
)
string
(
REPLACE
"
\n
"
"
\n
*** "
try_compile_output_message
"
${
try_compile_output_message
}
"
)
message
(
STATUS
"*** Dlib requires cuDNN V5.0 OR GREATER. Since cuDNN is not found DLIB WILL NOT USE CUDA. ***"
)
message
(
STATUS
"*****************************************************************************************************"
)
message
(
STATUS
"*** If you have cuDNN then set CMAKE_PREFIX_PATH to include cuDNN's folder. ***"
)
message
(
STATUS
"*** Found cuDNN, but we failed to compile the dlib/cmake_utils/test_for_cudnn project. "
)
message
(
STATUS
"*** You either have an unsupported version of cuDNN or something is wrong with your cudDNN install."
)
message
(
STATUS
"*** Since a functional cuDNN is not found DLIB WILL NOT USE CUDA. "
)
message
(
STATUS
"*** The output of the failed test_for_cudnn build is: "
)
message
(
STATUS
"*** "
)
message
(
STATUS
"***
${
try_compile_output_message
}
"
)
message
(
STATUS
"*****************************************************************************************************"
)
endif
()
endif
()
endif
()
endif
()
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