diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-12-15 06:49:38 -0800 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-12-15 06:49:38 -0800 |
commit | 1324ffef2f577bf5a56af964ff1c4d995632ca46 (patch) | |
tree | 3aec5159995c74f5243073e84c24f0c3b42ef4fd /Eigen/src/Core/util/Macros.h | |
parent | 5d00fdf0e861a85bd6d6038ab7736d2d70807aef (diff) |
Reenabled the use of constexpr on OpenCL devices
Diffstat (limited to 'Eigen/src/Core/util/Macros.h')
-rw-r--r-- | Eigen/src/Core/util/Macros.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |