diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-05-17 14:06:15 -0700 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-05-17 14:06:15 -0700 |
commit | 86ae94462e7a8a6ee87303fb558ac8c90349797d (patch) | |
tree | e15bf6a508ab9ce447a7398beb9da04a3802f67e /unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h | |
parent | 997c3359705062d7b3fc64907bb357ec03c0a418 (diff) |
#if defined(EIGEN_USE_NONBLOCKING_THREAD_POOL) is now #if !defined(EIGEN_USE_SIMPLE_THREAD_POOL): the non blocking thread pool is the default since it's more scalable, and one needs to request the old thread pool explicitly.
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h')
-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 4ffb41fdd..868398753 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h @@ -152,7 +152,7 @@ class TensorExecutor<Expression, ThreadPoolDevice, Vectorizable> { { const Index PacketSize = Vectorizable ? unpacket_traits<typename Evaluator::PacketReturnType>::size : 1; const Index size = array_prod(evaluator.dimensions()); -#if defined(EIGEN_USE_NONBLOCKING_THREAD_POOL) && defined(EIGEN_USE_COST_MODEL) +#if !defined(EIGEN_USE_SIMPLE_THREAD_POOL) && defined(EIGEN_USE_COST_MODEL) device.parallelFor(size, evaluator.costPerCoeff(Vectorizable), EvalRange<Evaluator, Index, Vectorizable>::alignBlockSize, [&evaluator](Index first, Index last) { |