mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-02-23 18:20:47 +08:00
Fixed compilation error in the tensor thread pool
This commit is contained in:
parent
0bb61b04ca
commit
ebf6ada5ee
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user