From a5a0c8fac1d86b61501199c79d4cde36f9e22305 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Tue, 4 Apr 2017 10:03:21 -0700 Subject: Guard sycl specific code under a EIGEN_USE_SYCL ifdef --- unsupported/Eigen/CXX11/src/Tensor/TensorVolumePatch.h | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorVolumePatch.h') diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorVolumePatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorVolumePatch.h index ea404242d..f7b28cf66 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorVolumePatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorVolumePatch.h @@ -64,8 +64,8 @@ class TensorVolumePatchOp : public TensorBase, D EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorEvaluator( const XprType& op, const Device& device) #endif - : m_impl(op.expression(), device), m_op(op) + : m_impl(op.expression(), device) +#ifdef EIGEN_USE_SYCL + , m_op(op) +#endif { EIGEN_STATIC_ASSERT((NumDims >= 5), YOU_MADE_A_PROGRAMMING_MISTAKE); @@ -510,8 +513,10 @@ struct TensorEvaluator, D EIGEN_DEVICE_FUNC Scalar* data() const { return NULL; } const TensorEvaluator& impl() const { return m_impl; } - // required by sycl + +#ifdef EIGEN_USE_SYCL EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const XprType& xpr() const { return m_op; } +#endif Index planePaddingTop() const { return m_planePaddingTop; } Index rowPaddingTop() const { return m_rowPaddingTop; } @@ -607,8 +612,10 @@ struct TensorEvaluator, D Scalar m_paddingValue; TensorEvaluator m_impl; -// required by sycl + +#ifdef EIGEN_USE_SYCL XprType m_op; +#endif }; -- cgit v1.2.3