diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2016-11-02 09:28:40 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2016-11-02 10:47:52 -0700 |
commit | bdd76154a1aa389d48b930085b7e8a11d7d9a4bf (patch) | |
tree | 48f16811e7a44145afdc8bf402e429b59c7cdf63 /tensorflow/core/util/work_sharder.cc | |
parent | 7040f4dfcfcf8173c26dbc5f8edb176449511a4d (diff) |
Delete old Eigen threadpool and associated code.
Get rid of EIGEN_USE_NONBLOCKING_THREAD_POOL symbol.
Change: 137961673
Diffstat (limited to 'tensorflow/core/util/work_sharder.cc')
-rw-r--r-- | tensorflow/core/util/work_sharder.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tensorflow/core/util/work_sharder.cc b/tensorflow/core/util/work_sharder.cc index 6cede8d461..7922fc9224 100644 --- a/tensorflow/core/util/work_sharder.cc +++ b/tensorflow/core/util/work_sharder.cc @@ -31,12 +31,10 @@ void Shard(int max_parallelism, thread::ThreadPool* workers, int64 total, work(0, total); return; } -#ifdef EIGEN_USE_NONBLOCKING_THREAD_POOL if (max_parallelism >= workers->NumThreads()) { workers->ParallelFor(total, cost_per_unit, work); return; } -#endif cost_per_unit = std::max(1LL, cost_per_unit); // We shard [0, total) into "num_shards" shards. // 1 <= num_shards <= num worker threads |