Skip to content

Commit

Permalink
pass board type
Browse files Browse the repository at this point in the history
  • Loading branch information
broskoTT committed Feb 15, 2025
1 parent 7cf8e7b commit 7fb46a1
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions device/cluster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,14 @@ std::unique_ptr<Chip> Cluster::construct_chip_from_cluster(
std::unordered_map<chip_id_t, HarvestingMasks>& simulated_harvesting_masks) {
HarvestingMasks harvesting_masks =
get_harvesting_masks(chip_id, cluster_desc, perform_harvesting, simulated_harvesting_masks);
tt_SocDescriptor soc_desc =
tt_SocDescriptor(soc_desc_path, cluster_desc->get_noc_translation_table_en().at(chip_id), harvesting_masks);
const BoardType chip_board_type = cluster_desc->get_board_type(chip_id);
bool is_chip_remote = cluster_desc->is_chip_remote(chip_id);
tt_SocDescriptor soc_desc = tt_SocDescriptor(
soc_desc_path,
cluster_desc->get_noc_translation_table_en().at(chip_id),
harvesting_masks,
chip_board_type,
is_chip_remote);
return construct_chip_from_cluster(chip_id, cluster_desc, soc_desc);
}

Expand All @@ -465,8 +471,9 @@ std::unique_ptr<Chip> Cluster::construct_chip_from_cluster(
bool perform_harvesting,
std::unordered_map<chip_id_t, HarvestingMasks>& simulated_harvesting_masks) {
tt::ARCH arch = cluster_desc->get_arch(chip_id);
const BoardType chip_board_type = cluster_desc->get_board_type(chip_id);
std::string soc_desc_path = tt_SocDescriptor::get_soc_descriptor_path(arch, chip_board_type);
BoardType chip_board_type = cluster_desc->get_board_type(chip_id);
bool is_chip_remote = cluster_desc->is_chip_remote(chip_id);
std::string soc_desc_path = tt_SocDescriptor::get_soc_descriptor_path(arch, chip_board_type, is_chip_remote);
return construct_chip_from_cluster(
soc_desc_path, chip_id, cluster_desc, perform_harvesting, simulated_harvesting_masks);
}
Expand Down

0 comments on commit 7fb46a1

Please sign in to comment.