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
23b9abd0
You need to sign in or sign up before continuing.
Commit
23b9abd0
authored
Jul 11, 2020
by
Davis King
Browse files
Switch cuda target architecture from sm_30 to sm_50. I.e. Maxwell instead of Kepler.
parent
a2498dc4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
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
dlib/cmake_utils/test_for_cudnn/CMakeLists.txt
dlib/cmake_utils/test_for_cudnn/CMakeLists.txt
+1
-1
No files found.
dlib/CMakeLists.txt
View file @
23b9abd0
...
...
@@ -645,7 +645,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_
3
0;-D__STRICT_ANSI__;-D_MWAITXINTRIN_H_INCLUDED;-D_FORCE_INLINES;
${
FLAGS_FOR_NVCC
}
"
)
list
(
APPEND CUDA_NVCC_FLAGS
"-arch=sm_
5
0;-D__STRICT_ANSI__;-D_MWAITXINTRIN_H_INCLUDED;-D_FORCE_INLINES;
${
FLAGS_FOR_NVCC
}
"
)
list
(
APPEND CUDA_NVCC_FLAGS
${
active_preprocessor_switches
}
)
if
(
NOT DLIB_IN_PROJECT_BUILD
)
LIST
(
APPEND CUDA_NVCC_FLAGS -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE
)
...
...
dlib/cmake_utils/test_for_cuda/CMakeLists.txt
View file @
23b9abd0
...
...
@@ -9,6 +9,6 @@ add_definitions(-DDLIB_USE_CUDA)
option
(
CUDA_PROPAGATE_HOST_FLAGS
"Propage C/CXX_FLAGS and friends to the host compiler via -Xcompile"
OFF
)
find_package
(
CUDA 7.5 REQUIRED
)
set
(
CUDA_HOST_COMPILATION_CPP ON
)
list
(
APPEND CUDA_NVCC_FLAGS
"-arch=sm_
3
0;-std=c++11;-D__STRICT_ANSI__;-D_MWAITXINTRIN_H_INCLUDED;-D_FORCE_INLINES"
)
list
(
APPEND CUDA_NVCC_FLAGS
"-arch=sm_
5
0;-std=c++11;-D__STRICT_ANSI__;-D_MWAITXINTRIN_H_INCLUDED;-D_FORCE_INLINES"
)
cuda_add_library
(
cuda_test STATIC cuda_test.cu
)
dlib/cmake_utils/test_for_cudnn/CMakeLists.txt
View file @
23b9abd0
...
...
@@ -7,7 +7,7 @@ include(../use_cpp_11.cmake)
option
(
CUDA_PROPAGATE_HOST_FLAGS
"Propage C/CXX_FLAGS and friends to the host compiler via -Xcompile"
OFF
)
find_package
(
CUDA 7.5 REQUIRED
)
set
(
CUDA_HOST_COMPILATION_CPP ON
)
list
(
APPEND CUDA_NVCC_FLAGS
"-arch=sm_
3
0;-std=c++11;-D__STRICT_ANSI__"
)
list
(
APPEND CUDA_NVCC_FLAGS
"-arch=sm_
5
0;-std=c++11;-D__STRICT_ANSI__"
)
add_definitions
(
-DDLIB_USE_CUDA
)
include
(
find_cudnn.txt
)
...
...
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