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
2dd89e3f
Commit
2dd89e3f
authored
Aug 06, 2016
by
Davis King
Browse files
CMake change to enable cuda use on ubuntu 16.06
parent
e0af06c0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
dlib/CMakeLists.txt
dlib/CMakeLists.txt
+1
-1
dlib/cmake_utils/test_for_cuda/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