From 73fcaa319fcd12328e0577042862db471488fd5c Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Fri, 31 Mar 2017 08:22:25 -0700 Subject: Gate the sycl specific code under #ifdef sycl --- unsupported/Eigen/CXX11/src/Tensor/TensorCustomOp.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorCustomOp.h') diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorCustomOp.h b/unsupported/Eigen/CXX11/src/Tensor/TensorCustomOp.h index c72d79435..7e4c129bb 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorCustomOp.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorCustomOp.h @@ -140,8 +140,9 @@ struct TensorEvaluator, Devi EIGEN_DEVICE_FUNC CoeffReturnType* data() const { return m_result; } - /// used by sycl in order to build the sycl buffer - EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Device& device() const{return m_device;} +#ifdef EIGEN_USE_SYCL + EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Device& device() const { return m_device; } +#endif protected: EIGEN_DEVICE_FUNC void evalTo(Scalar* data) { @@ -298,8 +299,9 @@ struct TensorEvaluator