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

Detecting arch through cluster descriptor #15564

Merged
merged 5 commits into from
Dec 5, 2024
Merged

Detecting arch through cluster descriptor #15564

merged 5 commits into from
Dec 5, 2024

Conversation

broskoTT
Copy link
Contributor

@broskoTT broskoTT commented Nov 29, 2024

Ticket

Related to #13948

Problem description

detect_arch was in the global namespace.
Now putting this functionality in the right place. It also now works with logical ids, as opposed to pci device enumeration id.
Related UMD change tenstorrent/tt-umd#345

What's changed

Changed detect_arch to tt_ClusterDescriptor::get_arch()
BoardType::DEFAULT changed to UNKNOWN
Also changed detect_arch to PCIDevice::enumerate_devices_info(), due to ClusterDescriptor::create() not working.

Checklist

broskoTT added a commit to tenstorrent/tt-umd that referenced this pull request Dec 4, 2024
### Issue
Related to #99 
Aftermath of #175 

### Description
Make detect_arch available through cluster_descriptor which should be
the only real endpoint when reading information about chips in the
cluster.

### List of the changes
- Removed detect_arch from cluster.h
- Added arch map in ClusterDescriptor
- Added static tt_ClusterDescriptor::detect_arch which should be used
instead of previously defined detect_arch

### Testing
Wrote a test which verifies this works as intended

### API Changes
This PR has API changes:
- [x] tt_metal approved PR pointing to this branch:
tenstorrent/tt-metal#15564
- [x] tt_debuda approved PR pointing to this branch:
tenstorrent/tt-exalens#201
broskoTT added a commit to tenstorrent/tt-umd that referenced this pull request Dec 5, 2024
### Issue
Fix issue after #358 

### Description
This change creates problems on clang-tidy run on tt_metal.

### List of the changes
- Reverted part of change from referenced PR

### Testing
Both bellow branches and runs have detect_arch commit reverted on UMD,
and have "don't run clang-tidy" commit reverted on tt_metal
All post commit run on tt_metal prior to change:
https://github.com/tenstorrent/tt-metal/actions/runs/12177536236
All post commit run on tt_metal after change:
https://github.com/tenstorrent/tt-metal/actions/runs/12177582506

### API Changes
There are no API changes in this PR.

Note that "build client" job failure is expected due to this PR not
being checked in: tenstorrent/tt-metal#15564
@broskoTT broskoTT merged commit 5c53639 into main Dec 5, 2024
118 checks passed
@broskoTT broskoTT deleted the brosko/detect_arch branch December 5, 2024 12:29
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.

3 participants