From ea4e65bf413fd5e60cd13407879d7ccaae62f6fc Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Thu, 7 Sep 2017 09:13:52 +0000 Subject: [PATCH] Fixed compilation with cuda_clang. --- Eigen/src/Core/GeneralProduct.h | 1 + Eigen/src/Core/NoAlias.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Eigen/src/Core/GeneralProduct.h b/Eigen/src/Core/GeneralProduct.h index 483277fe6..694f7cbde 100644 --- a/Eigen/src/Core/GeneralProduct.h +++ b/Eigen/src/Core/GeneralProduct.h @@ -396,6 +396,7 @@ template<> struct gemv_dense_selector */ template template +EIGEN_DEVICE_FUNC inline const Product MatrixBase::operator*(const MatrixBase &other) const { diff --git a/Eigen/src/Core/NoAlias.h b/Eigen/src/Core/NoAlias.h index 41fae5096..e94c8ee96 100644 --- a/Eigen/src/Core/NoAlias.h +++ b/Eigen/src/Core/NoAlias.h @@ -99,7 +99,7 @@ class NoAlias * \sa class NoAlias */ template -NoAlias MatrixBase::noalias() +NoAlias EIGEN_DEVICE_FUNC MatrixBase::noalias() { return NoAlias(derived()); }