Skip to content

Commit

Permalink
temptest
Browse files Browse the repository at this point in the history
  • Loading branch information
broskoTT committed Feb 15, 2025
1 parent 7fb46a1 commit 545f850
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions device/cluster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ void Cluster::construct_cluster(

std::unique_ptr<Chip> Cluster::construct_chip_from_cluster(
chip_id_t chip_id, tt_ClusterDescriptor* cluster_desc, tt_SocDescriptor& soc_desc) {
std::cout << "construct_chip_from_cluster1" << std::endl;
if (cluster_desc->is_chip_mmio_capable(chip_id)) {
return std::make_unique<LocalChip>(soc_desc, cluster_desc->get_chips_with_mmio().at(chip_id));
} else {
Expand All @@ -452,6 +453,7 @@ std::unique_ptr<Chip> Cluster::construct_chip_from_cluster(
tt_ClusterDescriptor* cluster_desc,
bool perform_harvesting,
std::unordered_map<chip_id_t, HarvestingMasks>& simulated_harvesting_masks) {
std::cout << "construct_chip_from_cluster2" << std::endl;
HarvestingMasks harvesting_masks =
get_harvesting_masks(chip_id, cluster_desc, perform_harvesting, simulated_harvesting_masks);
const BoardType chip_board_type = cluster_desc->get_board_type(chip_id);
Expand All @@ -470,6 +472,7 @@ std::unique_ptr<Chip> Cluster::construct_chip_from_cluster(
tt_ClusterDescriptor* cluster_desc,
bool perform_harvesting,
std::unordered_map<chip_id_t, HarvestingMasks>& simulated_harvesting_masks) {
std::cout << "construct_chip_from_cluster3" << std::endl;
tt::ARCH arch = cluster_desc->get_arch(chip_id);
BoardType chip_board_type = cluster_desc->get_board_type(chip_id);
bool is_chip_remote = cluster_desc->is_chip_remote(chip_id);
Expand Down Expand Up @@ -572,6 +575,7 @@ Cluster::Cluster(
const bool clean_system_resources,
bool perform_harvesting,
std::unordered_map<chip_id_t, HarvestingMasks> simulated_harvesting_masks) {
std::cout << "Cluster1" << std::endl;
cluster_desc = Cluster::create_cluster_descriptor();

for (auto& chip_id : cluster_desc->get_all_chips()) {
Expand All @@ -598,6 +602,7 @@ Cluster::Cluster(
const bool clean_system_resources,
bool perform_harvesting,
std::unordered_map<chip_id_t, HarvestingMasks> simulated_harvesting_masks) {
std::cout << "Cluster2" << std::endl;
cluster_desc = Cluster::create_cluster_descriptor();

for (auto& chip_id : target_devices) {
Expand Down Expand Up @@ -629,6 +634,7 @@ Cluster::Cluster(
const bool clean_system_resources,
bool perform_harvesting,
std::unordered_map<chip_id_t, HarvestingMasks> simulated_harvesting_masks) {
std::cout << "Cluster3" << std::endl;
cluster_desc = Cluster::create_cluster_descriptor();

for (auto& chip_id : target_devices) {
Expand Down Expand Up @@ -666,6 +672,7 @@ Cluster::Cluster(
const bool clean_system_resources,
bool perform_harvesting,
const std::unordered_map<chip_id_t, HarvestingMasks> simulated_harvesting_masks) {
std::cout << "Cluster4" << std::endl;
cluster_desc = Cluster::create_cluster_descriptor();

for (auto& [chip_id, chip] : chips) {
Expand Down
1 change: 1 addition & 0 deletions device/tt_soc_descriptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ std::string tt_SocDescriptor::get_soc_descriptor_path(
return tt::umd::utils::get_abs_path("tests/soc_descs/wormhole_b0_8x10.yaml");
case tt::ARCH::BLACKHOLE: {
auto chip_type = get_blackhole_chip_type(board_type, is_chip_remote);
std::cout << "yeah get_soc_descriptor_path was called" << std::endl;
return tt::umd::utils::get_abs_path(
chip_type == BlackholeChipType::Type1 ? "tests/soc_descs/blackhole_140_arch_type1.yaml"
: "tests/soc_descs/blackhole_140_arch_type2.yaml");
Expand Down

0 comments on commit 545f850

Please sign in to comment.