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

[MPS] Add optional minor argument to is_macos13_or_newer #95065

Closed
wants to merge 3 commits into from

Conversation

malfet
Copy link
Contributor

@malfet malfet commented Feb 17, 2023

Will be needed if one wants to make accurate XFAIL validation

I.e. torch.backends.mps.is_macos13_or_newer() will return True if PyTorch is running on MacOS 13.0 or newer, torch.backends.mps.is_macos13_or_newer(1) will return True if running on MacOS 13.1 or newer and torch.backends.mps.is_macos13_or_newer(2) will return True if running on MacOS 13.2 or newer

Do not use 13.3 check as @available does not really work for shared libraries

Will be needed if one wants to make accurate XFAIL validation
@pytorch-bot
Copy link

pytorch-bot bot commented Feb 17, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/95065

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 751e9a5:
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot bot added ciflow/mps Run MPS tests (subset of trunk) release notes: mps Release notes category labels Feb 17, 2023
@malfet malfet requested a review from albanD February 17, 2023 15:21
Copy link
Collaborator

@albanD albanD left a comment

Choose a reason for hiding this comment

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

SGTM

@malfet
Copy link
Contributor Author

malfet commented Feb 17, 2023

@pytorchbot merge -f "MPS tests are green"

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

pruthvistony added a commit to ROCm/pytorch that referenced this pull request May 2, 2023
@malfet malfet deleted the malfet/mps-add-minor branch June 7, 2023 20:30
jhavukainen pushed a commit to kulinseth/pytorch that referenced this pull request Mar 15, 2024
…#95065)

Will be needed if one wants to make accurate XFAIL validation

I.e. `torch.backends.mps.is_macos13_or_newer()` will return True if PyTorch is running on MacOS 13.0 or newer, `torch.backends.mps.is_macos13_or_newer(1)` will return True if running on MacOS 13.1 or newer and `torch.backends.mps.is_macos13_or_newer(2)` will return True  if running on MacOS 13.2 or newer

Do not use 13.3 check as `@available` does not really work for shared libraries

Pull Request resolved: pytorch#95065
Approved by: https://github.com/albanD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/mps Run MPS tests (subset of trunk) Merged release notes: mps Release notes category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants