Skip to content

Commit

Permalink
Remove physical grid size (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
pjanevskiTT authored Dec 24, 2024
1 parent eab293e commit b090032
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions device/api/umd/device/tt_soc_descriptor.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ class tt_SocDescriptor {
tt_SocDescriptor(const tt_SocDescriptor &other) :
arch(other.arch),
grid_size(other.grid_size),
physical_grid_size(other.physical_grid_size),
worker_grid_size(other.worker_grid_size),
cores(other.cores),
arc_cores(other.arc_cores),
Expand Down Expand Up @@ -116,7 +115,6 @@ class tt_SocDescriptor {

tt::ARCH arch;
tt_xy_pair grid_size;
tt_xy_pair physical_grid_size;
tt_xy_pair worker_grid_size;
std::unordered_map<tt_xy_pair, CoreDescriptor> cores;
std::vector<tt_xy_pair> arc_cores;
Expand Down
7 changes: 0 additions & 7 deletions device/tt_soc_descriptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,15 +234,8 @@ tt_SocDescriptor::tt_SocDescriptor(

auto grid_size_x = device_descriptor_yaml["grid"]["x_size"].as<int>();
auto grid_size_y = device_descriptor_yaml["grid"]["y_size"].as<int>();
int physical_grid_size_x = device_descriptor_yaml["physical"] && device_descriptor_yaml["physical"]["x_size"]
? device_descriptor_yaml["physical"]["x_size"].as<int>()
: grid_size_x;
int physical_grid_size_y = device_descriptor_yaml["physical"] && device_descriptor_yaml["physical"]["y_size"]
? device_descriptor_yaml["physical"]["y_size"].as<int>()
: grid_size_y;
load_core_descriptors_from_device_descriptor(device_descriptor_yaml);
grid_size = tt_xy_pair(grid_size_x, grid_size_y);
physical_grid_size = tt_xy_pair(physical_grid_size_x, physical_grid_size_y);
device_descriptor_file_path = device_descriptor_path;
std::string arch_name_value = device_descriptor_yaml["arch_name"].as<std::string>();
arch_name_value = trim(arch_name_value);
Expand Down

0 comments on commit b090032

Please sign in to comment.