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

[UMD] Remove a couple of leftover usages of old soc descriptor API #17707

Merged
merged 4 commits into from
Feb 24, 2025

Conversation

broskoTT
Copy link
Contributor

@broskoTT broskoTT commented Feb 7, 2025

Ticket

Related to #17002

Problem description

A couple of leftover usages of old soc descriptor API. After this and other PRs from this set, tt-metal will finally build with harvesting code completely removed from tt::umd::Cluster and members of tt_SocDescriptor made private, so that all usages are forced through get_cores() and other APIs.
Related PRs:
#17620
#17642
#17645
#17674
#17678

What's changed

  • .dram_cores changed with get_cores_for_dram_channel
  • dram_cores.size() changed with get_grid_size
  • replace .workers and .ethernet_cores from tlb_config with get_cores

Checklist

@broskoTT broskoTT merged commit f1cc691 into main Feb 24, 2025
154 of 155 checks passed
@broskoTT broskoTT deleted the brosko/soc_new_api9 branch February 24, 2025 14:27
broskoTT added a commit to tenstorrent/tt-umd that referenced this pull request Feb 27, 2025
### Issue
Last one for #439 

### Description
Finally removing old harvesting code. All the tt_metal's usages have
been moved to the new soc_descriptor and core_coordinate_manager apis.

### List of the changes
- Remove using_harvested_soc_descriptors,
get_harvesting_masks_for_soc_descriptors and
translate_to_noc_table_coords functions, and performed_harvesting,
harvested_rows_per_target, translation_tables_en from the public cluster
API
- Remove harvesting code from Cluster with many internal functions
- move old soc_descriptor structures to be private.
- Adjust tests accordingly
- Added noc_translation public member to soc_descriptor. Verify that the
one passed through constructor and through soc_descriptor matches. This
code should be improved.

### Testing
Code builds

### API Changes
There are no breaking API changes in this PR.
Related metal PRs prior to this change:
tenstorrent/tt-metal#17003
tenstorrent/tt-metal#17306
tenstorrent/tt-metal#17543
tenstorrent/tt-metal#17620
tenstorrent/tt-metal#17642
tenstorrent/tt-metal#17645
tenstorrent/tt-metal#17674
tenstorrent/tt-metal#17678
tenstorrent/tt-metal#17707
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants