Reenabled the use of constexpr on OpenCL devices

This commit is contained in:
Benoit Steiner 2016-12-15 06:49:38 -08:00
parent 5d00fdf0e8
commit 1324ffef2f

View File

@ -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