diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-04-19 13:54:28 -0700 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-04-19 13:54:28 -0700 |
commit | a278414d1b1220d56f574a80027955c55542cd95 (patch) | |
tree | c65cdb745a6f9dbdef7faf8b8196399219ecaa27 /unsupported | |
parent | f953c607058efd7c3508e888ac4bf2c526336b87 (diff) |
Avoid an unnecessary copy of the evaluator.
Diffstat (limited to 'unsupported')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h b/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h index 7a54f7a23..907da9446 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h @@ -183,7 +183,7 @@ class TensorExecutor<Expression, GpuDevice, Vectorizable> { template <typename Evaluator, typename Index, bool Vectorizable> struct EigenMetaKernelEval { static __device__ EIGEN_ALWAYS_INLINE - void run(Evaluator eval, Index first, Index last, Index step_size) { + void run(Evaluator& eval, Index first, Index last, Index step_size) { for (Index i = first; i < last; i += step_size) { eval.evalScalar(i); } |