mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user