mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-12 09:23:12 +08:00
#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.
This commit is contained in:
parent
997c335970
commit
86ae94462e
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user