Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
1e623983
Commit
1e623983
authored
Oct 17, 2015
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed cmake script so nvcc doesn't freak out.
parent
9e2f26fc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
CMakeLists.txt
dlib/CMakeLists.txt
+4
-1
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)
...
@@ -412,7 +412,10 @@ if (NOT TARGET dlib)
if
(
CUDA_FOUND
)
if
(
CUDA_FOUND
)
set
(
CUDA_HOST_COMPILATION_CPP ON
)
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..."
)
message
(
STATUS
"Looking for cuDNN install..."
)
# Look for cudnn, we will look in the same place as other CUDA
# 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 @@
...
@@ -2,7 +2,7 @@
#include <stdlib.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdio.h>
//
#include "cuda_dlib.h"
#include "cuda_dlib.h"
#define CHECK(call) \
#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