From ebf6ada5ee25a6c723ea072282a75ab879767839 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Tue, 17 May 2016 12:33:46 -0700 Subject: Fixed compilation error in the tensor thread pool --- unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h') 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(); -- cgit v1.2.3