From 5a80ca9e5f8fea37b0cc92517415f276b66814f7 Mon Sep 17 00:00:00 2001 From: Davis King Date: Fri, 24 Jul 2020 23:50:22 -0400 Subject: [PATCH] Apply --expt-relaxed-constexpr to all older versions of cuda. --- dlib/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlib/CMakeLists.txt b/dlib/CMakeLists.txt index 65ef9bee8..0da187531 100644 --- a/dlib/CMakeLists.txt +++ b/dlib/CMakeLists.txt @@ -633,7 +633,7 @@ if (NOT TARGET dlib) endif() endif() - if (CUDA_VERSION VERSION_EQUAL 10.2 OR CUDA_VERSION VERSION_EQUAL 10.1) + if (CUDA_VERSION VERSION_LESS 10.3) # 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.