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
2dd89e3f
Commit
2dd89e3f
authored
Aug 06, 2016
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMake change to enable cuda use on ubuntu 16.06
parent
e0af06c0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
CMakeLists.txt
dlib/CMakeLists.txt
+1
-1
CMakeLists.txt
dlib/cmake_utils/test_for_cuda/CMakeLists.txt
+1
-1
No files found.
dlib/CMakeLists.txt
View file @
2dd89e3f
...
...
@@ -457,7 +457,7 @@ if (NOT TARGET dlib)
# 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__"
)
list
(
APPEND CUDA_NVCC_FLAGS
"-arch=sm_30;-std=c++11;-D__STRICT_ANSI__
;-D_MWAITXINTRIN_H_INCLUDED;-D_FORCE_INLINES
"
)
include
(
cmake_utils/test_for_cudnn/find_cudnn.txt
)
...
...
dlib/cmake_utils/test_for_cuda/CMakeLists.txt
View file @
2dd89e3f
...
...
@@ -7,6 +7,6 @@ add_definitions(-DDLIB_USE_CUDA)
find_package
(
CUDA 7.5 REQUIRED
)
set
(
CUDA_HOST_COMPILATION_CPP ON
)
list
(
APPEND CUDA_NVCC_FLAGS
"-arch=sm_30;-std=c++11;-D__STRICT_ANSI__"
)
list
(
APPEND CUDA_NVCC_FLAGS
"-arch=sm_30;-std=c++11;-D__STRICT_ANSI__
;-D_MWAITXINTRIN_H_INCLUDED;-D_FORCE_INLINES
"
)
cuda_add_library
(
cuda_test STATIC cuda_test.cu
)
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