Commit 1515adc7 authored by Davis King's avatar Davis King
Browse files

work around a bug in nvcc

parent 7fe355e0
......@@ -633,7 +633,7 @@ if (NOT TARGET dlib)
endif()
endif()
if (CUDA_VERSION VERSION_EQUAL 10.2)
if (CUDA_VERSION VERSION_EQUAL 10.2 OR CUDA_VERSION VERSION_EQUAL 10.1)
# 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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment