From 73214c4bd06108ee3a26204acbbda205a40131bc Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 15 Dec 2017 14:10:59 +0100 Subject: Workaround nvcc 9.0 issue. See PR 351. https://bitbucket.org/eigen/eigen/pull-requests/351 --- unsupported/Eigen/CXX11/src/Tensor/TensorBase.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorBase.h') diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorBase.h b/unsupported/Eigen/CXX11/src/Tensor/TensorBase.h index 0d6331e9c..1d459a3a0 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorBase.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorBase.h @@ -836,7 +836,8 @@ class TensorBase protected: template friend class Tensor; template friend class TensorFixedSize; - template friend class TensorBase; + // the Eigen:: prefix is required to workaround a compilation issue with nvcc 9.0 + template friend class Eigen::TensorBase; EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Derived& derived() const { return *static_cast(this); } }; @@ -852,7 +853,8 @@ class TensorBase : public TensorBase { template friend class Tensor; template friend class TensorFixedSize; - template friend class TensorBase; + // the Eigen:: prefix is required to workaround a compilation issue with nvcc 9.0 + template friend class Eigen::TensorBase; EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Derived& setZero() { -- cgit v1.2.3