From b900fe47d5cc435915c8348fa1ffb6ac339c0f50 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Wed, 15 Jul 2015 17:17:04 -0700 Subject: [PATCH] Avoid relying on a default value for the Vectorizable template parameter of the EvalRange functor --- unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h b/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h index a795f8eaa..2c5e67f82 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h @@ -75,7 +75,7 @@ class TensorExecutor // Multicore strategy: the index space is partitioned and each partition is executed on a single core #ifdef EIGEN_USE_THREADS -template +template struct EvalRange { static void run(Evaluator evaluator, const Index first, const Index last) { eigen_assert(last > first); @@ -129,11 +129,11 @@ class TensorExecutor std::vector results; results.reserve(numblocks); for (int i = 0; i < numblocks; ++i) { - results.push_back(device.enqueue(&EvalRange::run, evaluator, i*blocksize, (i+1)*blocksize)); + results.push_back(device.enqueue(&EvalRange::run, evaluator, i*blocksize, (i+1)*blocksize)); } if (numblocks * blocksize < size) { - EvalRange::run(evaluator, numblocks * blocksize, size); + EvalRange::run(evaluator, numblocks * blocksize, size); } for (int i = 0; i < numblocks; ++i) {