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
693aa0a7
"git@developer.sourcefind.cn:OpenDAS/fairseq.git" did not exist on "0020477a6a68dc798d38475cd7dee83e9d2bca6c"
Commit
693aa0a7
authored
May 14, 2020
by
Davis King
Browse files
fix build errors in cuda 10.2
parent
c7062aa3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
dlib/CMakeLists.txt
dlib/CMakeLists.txt
+7
-0
No files found.
dlib/CMakeLists.txt
View file @
693aa0a7
...
@@ -633,6 +633,13 @@ if (NOT TARGET dlib)
...
@@ -633,6 +633,13 @@ if (NOT TARGET dlib)
endif
()
endif
()
endif
()
endif
()
if
(
CUDA_VERSION VERSION_EQUAL 10.2
)
# To avoid this error from nvcc:
# error: calling a constexpr __host__ function("log1p") from a __device__ function("cuda_log1pexp")
# is not allowed. The experimental flag '--expt-relaxed-constexpr' can be used to allow this.
# which is a bug in nvcc in this version of cuda.
list
(
APPEND FLAGS_FOR_NVCC
"--expt-relaxed-constexpr"
)
endif
()
set
(
CUDA_HOST_COMPILATION_CPP ON
)
set
(
CUDA_HOST_COMPILATION_CPP ON
)
# Note that we add __STRICT_ANSI__ to avoid freaking out nvcc with gcc specific
# Note that we add __STRICT_ANSI__ to avoid freaking out nvcc with gcc specific
...
...
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