diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-05-17 12:33:46 -0700 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-05-17 12:33:46 -0700 |
commit | ebf6ada5ee25a6c723ea072282a75ab879767839 (patch) | |
tree | 579c874972d1858eca98e187a71ba7056ca091d8 /unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h | |
parent | 0bb61b04ca889cc27be2c352375912da294eb569 (diff) |
Fixed compilation error in the tensor thread pool
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h index 333ca91e6..d31b0ad38 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h @@ -253,8 +253,8 @@ struct ThreadPoolDevice { } // Split into halves and submit to the pool. Index mid = first + divup((last - first) / 2, block_size) * block_size; - enqueue_func([=, &handleRange]() { handleRange(mid, last); }); - enqueue_func([=, &handleRange]() { handleRange(first, mid); }); + pool_->Schedule([=, &handleRange]() { handleRange(mid, last); }); + pool_->Schedule([=, &handleRange]() { handleRange(first, mid); }); }; handleRange(0, n); barrier.Wait(); |