diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-02-10 14:29:47 -0800 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-02-10 14:29:47 -0800 |
commit | f669f5656ab550010c5dd92ce2da7d3fab07babd (patch) | |
tree | 66a0fdee870f1dd927dc1515717a8f6173db146e /unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h | |
parent | fefec723aa44703c1b7884b2ccfa73877a58f500 (diff) |
Marked a few functions as EIGEN_DEVICE_FUNC to enable the use of tensors in cuda kernels.
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h index d81197e6d..2ad52b2f9 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h @@ -275,7 +275,7 @@ struct DSizes : array<DenseIndex, NumDims> { } #endif - DSizes& operator = (const array<DenseIndex, NumDims>& other) { + EIGEN_DEVICE_FUNC DSizes& operator = (const array<DenseIndex, NumDims>& other) { *static_cast<Base*>(this) = other; return *this; } |