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 usage of outdated UMD apis #17645

Merged
merged 5 commits into from
Feb 24, 2025
Merged

[UMD] Remove usage of outdated UMD apis #17645

merged 5 commits into from
Feb 24, 2025

Conversation

broskoTT
Copy link
Contributor

@broskoTT broskoTT commented Feb 6, 2025

Ticket

Related to #17002

Problem description

Alter some APIs and remove some usages.

What's changed

  • Remove harvesting mask from metal_soc_descriptor
  • Remove usage of getting array of soc descriptor
  • Change getting harvesting mask.

Checklist

@broskoTT broskoTT force-pushed the brosko/soc_new_api6 branch from 4ee3370 to bf36301 Compare February 24, 2025 12:42
@broskoTT broskoTT merged commit 724237a into main Feb 24, 2025
254 of 266 checks passed
@broskoTT broskoTT deleted the brosko/soc_new_api6 branch February 24, 2025 14:22
broskoTT added a commit that referenced this pull request Feb 24, 2025
…17707)

### 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
- [x] All post-commit tests :
https://github.com/tenstorrent/tt-metal/actions/runs/13197621962
- [x] Newest All post-commit tests :
https://github.com/tenstorrent/tt-metal/actions/runs/13499189013
- [x] Blackhole post-commit tests :
https://github.com/tenstorrent/tt-metal/actions/runs/13197623746
- [ ] (Single-card) Model perf tests :
https://github.com/tenstorrent/tt-metal/actions/runs/13197626137
- [ ] (Single-card) Device perf regressions :
https://github.com/tenstorrent/tt-metal/actions/runs/13197628487
- [ ] (T3K) T3000 unit tests :
https://github.com/tenstorrent/tt-metal/actions/runs/13197630092
- [ ] (T3K) T3000 demo tests :
https://github.com/tenstorrent/tt-metal/actions/runs/13197632086
- [ ] (TG) TG unit tests :
https://github.com/tenstorrent/tt-metal/actions/runs/13197633394
- [ ] (TG) TG demo tests :
https://github.com/tenstorrent/tt-metal/actions/runs/13197635275
- [x] (TGG) TGG unit tests :
https://github.com/tenstorrent/tt-metal/actions/runs/13197637219
- [x] (TGG) TGG demo tests :
https://github.com/tenstorrent/tt-metal/actions/runs/13197639736
broskoTT added a commit to tenstorrent/tt-umd that referenced this pull request Feb 25, 2025
### Issue
Part of #248

### Description
This map usage is removed from tt-metal.
Alternative is to get_target_device_ids and then get_soc_descriptor()

### List of the changes
- Removed get_virtual_soc_descriptors
- Added specific get_soc_descriptor to mockup and simulation
- Change all relevant usages

### Testing
Existing CI tests

### API Changes
There will be no breaking API changes after this one is merged:
tenstorrent/tt-metal#17645
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