aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/CXX11/src/Tensor/TensorArgMax.h
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2017-04-04 09:54:31 -0700
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2017-04-04 09:54:31 -0700
commit63840d4666f5f92fd235ef30862db06706e928b4 (patch)
tree76ae563e86d40a02001d897f75585bc927978560 /unsupported/Eigen/CXX11/src/Tensor/TensorArgMax.h
parentbc050ea9f02f54c250858d5b6d24b226a3359021 (diff)
iGate the sycl specific code under a EIGEN_USE_SYCL define
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorArgMax.h')
-rw-r--r--unsupported/Eigen/CXX11/src/Tensor/TensorArgMax.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorArgMax.h b/unsupported/Eigen/CXX11/src/Tensor/TensorArgMax.h
index 85facfb64..c0f33ba2d 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorArgMax.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorArgMax.h
@@ -119,11 +119,11 @@ struct TensorEvaluator<const TensorIndexTupleOp<ArgType>, Device>
EIGEN_DEVICE_FUNC Scalar* data() const { return NULL; }
- // required by sycl
+#ifdef EIGEN_USE_SYCL
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const TensorEvaluator<ArgType, Device>& impl() const {
return m_impl;
}
-
+#endif
protected:
TensorEvaluator<ArgType, Device> m_impl;