diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2017-04-04 09:47:04 -0700 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2017-04-04 09:47:04 -0700 |
commit | bc050ea9f02f54c250858d5b6d24b226a3359021 (patch) | |
tree | 059346cba2671e09c1d64c4d93a8d3d5922c4582 /unsupported/Eigen/CXX11/src | |
parent | c1b3d5ecb6c7ee2d52260507826955c8adee3bf6 (diff) |
Fixed compilation error when sycl is enabled.
Diffstat (limited to 'unsupported/Eigen/CXX11/src')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorGenerator.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorGenerator.h b/unsupported/Eigen/CXX11/src/Tensor/TensorGenerator.h index 220bd7ad0..11ae21be9 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorGenerator.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorGenerator.h @@ -97,9 +97,13 @@ struct TensorEvaluator<const TensorGeneratorOp<Generator, ArgType>, Device> }; EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorEvaluator(const XprType& op, const Device& device) - : m_generator(op.generator()), m_argImpl(op.expression(), device) + : m_generator(op.generator()) +#ifdef EIGEN_USE_SYCL + , m_argImpl(op.expression(), device) +#endif { - m_dimensions = m_argImpl.dimensions(); + TensorEvaluator<ArgType, Device> argImpl(op.expression(), device); + m_dimensions = argImpl.dimensions(); if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) { m_strides[0] = 1; |