Skip to content

Commit

Permalink
#16460: Add more helpful error message when tt-topology needs to be run
Browse files Browse the repository at this point in the history
  • Loading branch information
cfjchu committed Jan 15, 2025
1 parent 2c4a641 commit 9347616
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tt_metal/distributed/system_mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,13 @@ void SystemMesh::Impl::initialize() {

std::tie(logical_to_physical_coordinates_, logical_mesh_shape_) = get_system_mesh_coordinate_translation_map();
for (const auto& [logical_coordinate, physical_coordinate] : logical_to_physical_coordinates_) {
logical_to_device_id_.emplace(logical_coordinate, physical_coordinate_to_device_id_.at(physical_coordinate));
auto physical_device_id_iter = physical_coordinate_to_device_id_.find(physical_coordinate);
TT_FATAL(
physical_device_id_iter != physical_coordinate_to_device_id_.end(),
"Physical (Ethernet) coordinate: {} not found. Have you used `tt-topology` to flash the ethernet "
"coordinates with the correct topology?",
physical_coordinate);
logical_to_device_id_.try_emplace(logical_coordinate, physical_device_id_iter->second);
}
}

Expand Down

0 comments on commit 9347616

Please sign in to comment.