Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove core type worker #360

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions device/api/umd/device/tt_core_coordinates.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
* CoreType is an enum class that represents all types of cores
* present on the Tenstorrent chip.
*/
// TODO: change to uint8_t and uplift to tt-metal
enum class CoreType {
enum class CoreType : uint8_t {
ARC,
DRAM,
ACTIVE_ETH,
Expand All @@ -29,14 +28,13 @@ enum class CoreType {
// but it won't be needed later on
HARVESTED,
ETH,
WORKER,
};

/*
* CoordSystem is an enum class that represents all types of coordinate
* systems that can be used to represent a core's location.
*/
enum class CoordSystem : std::uint8_t {
enum class CoordSystem : uint8_t {
LOGICAL,
PHYSICAL,
VIRTUAL,
Expand Down
2 changes: 1 addition & 1 deletion device/simulation/deprecated/tt_versim_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void translate_soc_descriptor_to_ca_soc(CA::Soc& soc, const tt_SocDescriptor soc
case CoreType::PCIE:
node.pcie = true;
break;
case CoreType::WORKER:
case CoreType::TENSIX:
node.worker = true;
break;
case CoreType::HARVESTED:
Expand Down
2 changes: 1 addition & 1 deletion device/tt_soc_descriptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ void tt_SocDescriptor::load_core_descriptors_from_device_descriptor(YAML::Node &
for (const auto &core_string : worker_cores) {
CoreDescriptor core_descriptor;
core_descriptor.coord = format_node(core_string);
core_descriptor.type = CoreType::WORKER;
core_descriptor.type = CoreType::TENSIX;
core_descriptor.l1_size = worker_l1_size;
cores.insert({core_descriptor.coord, core_descriptor});
workers.push_back(core_descriptor.coord);
Expand Down
Loading