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

Fix Metal build: put detect_arch() back #175

Merged
merged 1 commit into from
Oct 17, 2024
Merged

Conversation

joelsmithTT
Copy link
Contributor

This family of functions was removed during a refactor. Metal is relying on one of them. This change reintroduces it.

Fixes #171

This family of functions was removed during a refactor.  Metal is
relying on one of them.  This change reintroduces it.
@joelsmithTT joelsmithTT self-assigned this Oct 16, 2024
@blozano-tt
Copy link
Collaborator

I was just wondering where this function went lol

Copy link
Contributor

@broskoTT broskoTT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's fix this for tt_metal, then we can change it afterwards if there's something to change.

@broskoTT broskoTT merged commit 35aa474 into main Oct 17, 2024
16 checks passed
@broskoTT broskoTT deleted the joelsmith/fix-metal-build branch October 17, 2024 05:32
broskoTT added a commit that referenced this pull request Oct 17, 2024
I've rushed into merging Joel's change #175
Seems like there were two detect_arch() calls which were needed. 
This time I've manually verified that tt_metal builds with UMD on this
branch.

I've also added an API test to document this usage, which should be
changed, probably to tt::umd::ClusterDescriptor::get_arch(chip_id) or
something similar

Fixes #171
@broskoTT broskoTT mentioned this pull request Nov 27, 2024
2 tasks
broskoTT added a commit 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
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.

Fix Metal build
3 participants