-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement CoreCoord struct and translation
- Loading branch information
1 parent
aea0eea
commit 821fd97
Showing
30 changed files
with
1,964 additions
and
980 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/* | ||
* SPDX-FileCopyrightText: (c) 2024 Tenstorrent Inc. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "umd/device/coordinate_manager.h" | ||
|
||
class BlackholeCoordinateManager : public CoordinateManager { | ||
public: | ||
BlackholeCoordinateManager( | ||
const tt_xy_pair& tensix_grid_size, | ||
const std::vector<tt_xy_pair>& tensix_cores, | ||
const size_t tensix_harvesting_mask, | ||
const tt_xy_pair& dram_grid_size, | ||
const std::vector<tt_xy_pair>& dram_cores, | ||
const size_t dram_harvesting_mask, | ||
const tt_xy_pair& eth_grid_size, | ||
const std::vector<tt_xy_pair>& eth_cores, | ||
const tt_xy_pair& arc_grid_size, | ||
const std::vector<tt_xy_pair>& arc_cores, | ||
const tt_xy_pair& pcie_grid_size, | ||
const std::vector<tt_xy_pair>& pcie_cores) : | ||
CoordinateManager( | ||
tensix_grid_size, | ||
tensix_cores, | ||
tensix_harvesting_mask, | ||
dram_grid_size, | ||
dram_cores, | ||
dram_harvesting_mask, | ||
eth_grid_size, | ||
eth_cores, | ||
arc_grid_size, | ||
arc_cores, | ||
pcie_grid_size, | ||
pcie_cores) { | ||
this->tensix_harvesting(tensix_harvesting_mask); | ||
this->dram_harvesting(dram_harvesting_mask); | ||
this->translate_eth_coords(); | ||
this->translate_arc_coords(); | ||
this->translate_pcie_coords(); | ||
} | ||
|
||
protected: | ||
void dram_harvesting(const size_t dram_harvesting_mask) override; | ||
void tensix_harvesting(const size_t tensix_harvesting_mask) override; | ||
|
||
void fill_tensix_logical_to_translated() override; | ||
void fill_eth_logical_to_translated() override; | ||
void fill_pcie_logical_to_translated() override; | ||
|
||
private: | ||
static const size_t eth_translated_coordinate_start_x = 20; | ||
static const size_t eth_translated_coordinate_start_y = 25; | ||
|
||
static const size_t pcie_translated_coordinate_start_x = 19; | ||
static const size_t pcie_translated_coordinate_start_y = 24; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
* SPDX-FileCopyrightText: (c) 2024 Tenstorrent Inc. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "umd/device/coordinate_manager.h" | ||
|
||
class GrayskullCoordinateManager : public CoordinateManager { | ||
public: | ||
GrayskullCoordinateManager( | ||
const tt_xy_pair& tensix_grid_size, | ||
const std::vector<tt_xy_pair>& tensix_cores, | ||
const size_t tensix_harvesting_mask, | ||
const tt_xy_pair& dram_grid_size, | ||
const std::vector<tt_xy_pair>& dram_cores, | ||
const size_t dram_harvesting_mask, | ||
const tt_xy_pair& eth_grid_size, | ||
const std::vector<tt_xy_pair>& eth_cores, | ||
const tt_xy_pair& arc_grid_size, | ||
const std::vector<tt_xy_pair>& arc_cores, | ||
const tt_xy_pair& pcie_grid_size, | ||
const std::vector<tt_xy_pair>& pcie_cores) : | ||
CoordinateManager( | ||
tensix_grid_size, | ||
tensix_cores, | ||
tensix_harvesting_mask, | ||
dram_grid_size, | ||
dram_cores, | ||
dram_harvesting_mask, | ||
eth_grid_size, | ||
eth_cores, | ||
arc_grid_size, | ||
arc_cores, | ||
pcie_grid_size, | ||
pcie_cores) { | ||
this->tensix_harvesting(tensix_harvesting_mask); | ||
this->dram_harvesting(dram_harvesting_mask); | ||
this->translate_eth_coords(); | ||
this->translate_arc_coords(); | ||
this->translate_pcie_coords(); | ||
} | ||
|
||
protected: | ||
void fill_tensix_logical_to_translated() override; | ||
void fill_eth_logical_to_translated() override; | ||
}; |
Oops, something went wrong.