From f669f5656ab550010c5dd92ce2da7d3fab07babd Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Tue, 10 Feb 2015 14:29:47 -0800 Subject: Marked a few functions as EIGEN_DEVICE_FUNC to enable the use of tensors in cuda kernels. --- unsupported/Eigen/CXX11/src/Tensor/Tensor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'unsupported/Eigen/CXX11/src/Tensor/Tensor.h') diff --git a/unsupported/Eigen/CXX11/src/Tensor/Tensor.h b/unsupported/Eigen/CXX11/src/Tensor/Tensor.h index 0e8a4b8d6..037219f23 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/Tensor.h +++ b/unsupported/Eigen/CXX11/src/Tensor/Tensor.h @@ -350,7 +350,7 @@ class Tensor : public TensorBase > } #endif - void resize(const array& dimensions) + EIGEN_DEVICE_FUNC void resize(const array& dimensions) { std::size_t i; Index size = Index(1); @@ -367,7 +367,7 @@ class Tensor : public TensorBase > #endif } - void resize(const DSizes& dimensions) { + EIGEN_DEVICE_FUNC void resize(const DSizes& dimensions) { array dims; for (std::size_t i = 0; i < NumIndices; ++i) { dims[i] = dimensions[i]; -- cgit v1.2.3