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
1e623983
"git@developer.sourcefind.cn:change/sglang.git" did not exist on "b91cb67e7ae55b57b81e6645b4773f15987f7f97"
Commit
1e623983
authored
Oct 17, 2015
by
Davis King
Browse files
Fixed cmake script so nvcc doesn't freak out.
parent
9e2f26fc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
dlib/CMakeLists.txt
dlib/CMakeLists.txt
+4
-1
dlib/dnn/cuda_dlib.cu
dlib/dnn/cuda_dlib.cu
+1
-1
No files found.
dlib/CMakeLists.txt
View file @
1e623983
...
...
@@ -412,7 +412,10 @@ if (NOT TARGET dlib)
if
(
CUDA_FOUND
)
set
(
CUDA_HOST_COMPILATION_CPP ON
)
list
(
APPEND CUDA_NVCC_FLAGS
"-arch=sm_30;-std=c++11"
)
# Note that we add __STRICT_ANSI__ to avoid freaking out nvcc with gcc specific
# magic in the standard C++ header files (since nvcc uses gcc headers on
# linux).
list
(
APPEND CUDA_NVCC_FLAGS
"-arch=sm_30;-std=c++11;-D__STRICT_ANSI__"
)
message
(
STATUS
"Looking for cuDNN install..."
)
# Look for cudnn, we will look in the same place as other CUDA
...
...
dlib/dnn/cuda_dlib.cu
View file @
1e623983
...
...
@@ -2,7 +2,7 @@
#include <stdlib.h>
#include <stdio.h>
//
#include "cuda_dlib.h"
#include "cuda_dlib.h"
#define CHECK(call) \
{ \
...
...
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