diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2017-03-31 08:31:28 -0700 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2017-03-31 08:31:28 -0700 |
commit | c1b3d5ecb6c7ee2d52260507826955c8adee3bf6 (patch) | |
tree | 9148e379f1eca4dcbee28f8ca55fb0332b25e474 /unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h | |
parent | e2d5d4e7b3ac51152e26de2d00eabb26ee2a4454 (diff) |
Restored code compatibility with compilers that dont support c++11
Gated more sycl code under #ifdef sycl
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h b/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h index 1a105165d..415021510 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h @@ -255,10 +255,10 @@ struct TensorEvaluator<const TensorPatchOp<PatchDim, ArgType>, Device> EIGEN_DEVICE_FUNC Scalar* data() const { return NULL; } - /// required by sycl in order to extract the accessor +#ifdef EIGEN_USE_SYCL EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorEvaluator<ArgType, Device>& impl() const { return m_impl; } - /// required by sycl in order to extract the accessor EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const PatchDim& functor() const { return patch_dims; } +#endif protected: Dimensions m_dimensions; |