Skip to content

Commit

Permalink
#0: Build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sminakov-tt committed Oct 23, 2024
1 parent a47056b commit f954e36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ttnn/cpp/ttnn/tensor/tensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,8 @@ void Tensor::deallocate(bool force) {
});

for (auto worker : this->workers) {
worker->push_work(std::make_shared<std::function<void()>>(
[worker, dealloc_lambda]() mutable { (*dealloc_lambda)(worker); }));
worker->push_work(
[worker, dealloc_lambda]() mutable { (*dealloc_lambda)(worker); });
}
}
} else {
Expand Down
3 changes: 1 addition & 2 deletions ttnn/cpp/ttnn/tensor/tensor_ops.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@
namespace{
inline void SynchronizeWorkerThreads(const std::vector<Device*>& workers) {
// Push empty work to threads and ensure its been picked up
static auto empty_work = std::make_shared<std::function<void()>>([](){});
for (auto target_device : workers) {
target_device->work_executor.push_work(empty_work);
target_device->work_executor.push_work([](){});
}
// Block until work has been picked up, to flush the queue
for (auto target_device : workers) {
Expand Down

0 comments on commit f954e36

Please sign in to comment.