From 1324ffef2f577bf5a56af964ff1c4d995632ca46 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Thu, 15 Dec 2016 06:49:38 -0800 Subject: [PATCH] Reenabled the use of constexpr on OpenCL devices --- Eigen/src/Core/util/Macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h index df7cef051..c5f5ccd40 100644 --- a/Eigen/src/Core/util/Macros.h +++ b/Eigen/src/Core/util/Macros.h @@ -414,7 +414,7 @@ // Does the compiler fully support const expressions? (as in c++14) #ifndef EIGEN_HAS_CONSTEXPR -#if defined(__CUDACC__) || defined(__SYCL_DEVICE_ONLY__) +#if defined(__CUDACC__) // Const expressions are supported provided that c++11 is enabled and we're using either clang or nvcc 7.5 or above #if EIGEN_MAX_CPP_VER>=14 && (__cplusplus > 199711L && defined(__CUDACC_VER__) && (EIGEN_COMP_CLANG || __CUDACC_VER__ >= 70500)) #define EIGEN_HAS_CONSTEXPR 1