diff options
author | Ilya Biryukov <ibiryukov@google.com> | 2017-03-06 12:01:12 +0100 |
---|---|---|
committer | Ilya Biryukov <ibiryukov@google.com> | 2017-03-06 12:01:12 +0100 |
commit | 1c03d43a5cc421da067f12fe02db9eedaa1d125d (patch) | |
tree | b265a1d86af424b2b95e06d47f8fa03d5538f91c /Eigen/src/Core/MathFunctions.h | |
parent | f0f35911181cc7e2089a3319d966dcbd3596461b (diff) |
Fixed compilation with cuda-clang
Diffstat (limited to 'Eigen/src/Core/MathFunctions.h')
-rw-r--r-- | Eigen/src/Core/MathFunctions.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/MathFunctions.h b/Eigen/src/Core/MathFunctions.h index 7a6b999af..5ec6c395e 100644 --- a/Eigen/src/Core/MathFunctions.h +++ b/Eigen/src/Core/MathFunctions.h @@ -512,7 +512,7 @@ namespace std_fallback { template<typename Scalar> struct expm1_impl { - static inline Scalar run(const Scalar& x) + EIGEN_DEVICE_FUNC static inline Scalar run(const Scalar& x) { EIGEN_STATIC_ASSERT_NON_INTEGER(Scalar) #if EIGEN_HAS_CXX11_MATH @@ -549,7 +549,7 @@ namespace std_fallback { template<typename Scalar> struct log1p_impl { - static inline Scalar run(const Scalar& x) + EIGEN_DEVICE_FUNC static inline Scalar run(const Scalar& x) { EIGEN_STATIC_ASSERT_NON_INTEGER(Scalar) #if EIGEN_HAS_CXX11_MATH |