mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-20 20:04:26 +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.
|
// Split into halves and submit to the pool.
|
||||||
Index mid = first + divup((last - first) / 2, block_size) * block_size;
|
Index mid = first + divup((last - first) / 2, block_size) * block_size;
|
||||||
enqueue_func([=, &handleRange]() { handleRange(mid, last); });
|
pool_->Schedule([=, &handleRange]() { handleRange(mid, last); });
|
||||||
enqueue_func([=, &handleRange]() { handleRange(first, mid); });
|
pool_->Schedule([=, &handleRange]() { handleRange(first, mid); });
|
||||||
};
|
};
|
||||||
handleRange(0, n);
|
handleRange(0, n);
|
||||||
barrier.Wait();
|
barrier.Wait();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user