Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pjanevskiTT committed Dec 19, 2024
1 parent 537d55f commit c3f0293
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions device/blackhole/blackhole_coordinate_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ BlackholeCoordinateManager::BlackholeCoordinateManager(
}

void BlackholeCoordinateManager::translate_tensix_coords() {
if (CoordinateManager::get_num_harvested(tensix_harvesting_mask) > tensix_grid_size.x) {
tensix_harvesting_mask = 0;
}
size_t num_harvested_x = CoordinateManager::get_num_harvested(tensix_harvesting_mask);
size_t grid_size_x = tensix_grid_size.x;
size_t grid_size_y = tensix_grid_size.y;
Expand Down
3 changes: 3 additions & 0 deletions device/coordinate_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ CoreCoord CoordinateManager::translate_coord_to(const CoreCoord core_coord, cons
}

void CoordinateManager::translate_tensix_coords() {
if (CoordinateManager::get_num_harvested(tensix_harvesting_mask) > tensix_grid_size.y) {
tensix_harvesting_mask = 0;
}
size_t num_harvested_y = CoordinateManager::get_num_harvested(tensix_harvesting_mask);
size_t grid_size_x = tensix_grid_size.x;
size_t grid_size_y = tensix_grid_size.y;
Expand Down

0 comments on commit c3f0293

Please sign in to comment.