mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fixed compilation error in the tensor thread pool
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user