Skip to content

Commit

Permalink
#17119 - Initialize work_executor_ and set WorkExecutorMode::SYNCHRON…
Browse files Browse the repository at this point in the history
…OUS in MeshDevice ctor

 - Solves uninitialized work_executor from MeshDevice::create_submesh()
   calls leading to ND values at runtime and segfault at
   MeshDevice::close() in tt-forge-fe due to tt-metal/2c2110c778
  • Loading branch information
kmabeeTT authored and yieldthought committed Jan 31, 2025
1 parent 1526fd2 commit 38bb0be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tt_metal/distributed/mesh_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ MeshDevice::MeshDevice(
mesh_id_(generate_unique_mesh_id()),
parent_mesh_(std::move(parent_mesh)) {
work_executor_ = std::make_unique<WorkExecutor>(0 /* worker_core */, mesh_id_);
work_executor_->initialize();
work_executor_->set_worker_mode(WorkExecutorMode::SYNCHRONOUS);
}

std::shared_ptr<MeshDevice> MeshDevice::create(
Expand Down

0 comments on commit 38bb0be

Please sign in to comment.