-
Notifications
You must be signed in to change notification settings - Fork 22.6k
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
Conversation
Will be needed if one wants to make accurate XFAIL validation
🔗 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 FailuresAs of commit 751e9a5: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM
@pytorchbot merge -f "MPS tests are green" |
Merge startedYour 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 |
…ytorch#95065)" This reverts commit 5de3ead.
…#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
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 andtorch.backends.mps.is_macos13_or_newer(2)
will return True if running on MacOS 13.2 or newerDo not use 13.3 check as
@available
does not really work for shared libraries