Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pjanevskiTT committed Oct 25, 2024
1 parent 31414cf commit d8104e5
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions device/coordinate_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,14 @@ CoordinateManager* CoordinateManager::get_coordinate_manager(
const std::vector<tt_xy_pair>& workers,
std::size_t harvesting_mask) {

if (arch == tt::ARCH::GRAYSKULL) {
return new GrayskullCoordinateManager(worker_grid_size, workers, harvesting_mask);
} else if (arch == tt::ARCH::WORMHOLE_B0) {
return new WormholeCoordinateManager(worker_grid_size, workers, harvesting_mask);
} else if (arch == tt::ARCH::BLACKHOLE) {
return new BlackholeCoordinateManager(worker_grid_size, workers, harvesting_mask);
} else {
throw std::runtime_error("Invalid architecture for coordinate manager");
switch (arch) {
case tt::ARCH::GRAYSKULL:
return new GrayskullCoordinateManager(worker_grid_size, workers, harvesting_mask);
case tt::ARCH::WORMHOLE_B0:
return new WormholeCoordinateManager(worker_grid_size, workers, harvesting_mask);
case tt::ARCH::BLACKHOLE:
return new BlackholeCoordinateManager(worker_grid_size, workers, harvesting_mask);
}

throw std::runtime_error("Invalid architecture for creating coordinate manager");
}

0 comments on commit d8104e5

Please sign in to comment.