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
679b2a24
Commit
679b2a24
authored
Jan 10, 2018
by
Davis King
Browse files
merged
parents
75961ed1
a389bf23
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
dlib/CMakeLists.txt
dlib/CMakeLists.txt
+7
-1
No files found.
dlib/CMakeLists.txt
View file @
679b2a24
...
@@ -584,9 +584,15 @@ if (NOT TARGET dlib)
...
@@ -584,9 +584,15 @@ if (NOT TARGET dlib)
try_compile
(
cuda_test_compile_worked
${
PROJECT_BINARY_DIR
}
/cuda_test_build
try_compile
(
cuda_test_compile_worked
${
PROJECT_BINARY_DIR
}
/cuda_test_build
${
PROJECT_SOURCE_DIR
}
/cmake_utils/test_for_cuda cuda_test
${
PROJECT_SOURCE_DIR
}
/cmake_utils/test_for_cuda cuda_test
CMAKE_FLAGS
${
CUDA_TEST_CMAKE_FLAGS
}
CMAKE_FLAGS
${
CUDA_TEST_CMAKE_FLAGS
}
OUTPUT_VARIABLE try_compile_output_message
)
)
if
(
NOT cuda_test_compile_worked
)
if
(
NOT cuda_test_compile_worked
)
message
(
STATUS
"*** CUDA was found but your compiler failed to compile a simple CUDA program so dlib isn't going to use CUDA. ***"
)
string
(
REPLACE
"
\n
"
"
\n
*** "
try_compile_output_message
"
${
try_compile_output_message
}
"
)
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
"*** The output of the failed CUDA test compile is shown below: "
)
message
(
STATUS
"***
${
try_compile_output_message
}
"
)
message
(
STATUS
"*****************************************************************************************************************"
)
else
()
else
()
message
(
STATUS
"Checking if you have the right version of cuDNN installed."
)
message
(
STATUS
"Checking if you have the right version of cuDNN installed."
)
try_compile
(
cudnn_test_compile_worked
${
PROJECT_BINARY_DIR
}
/cudnn_test_build
try_compile
(
cudnn_test_compile_worked
${
PROJECT_BINARY_DIR
}
/cudnn_test_build
...
...
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