-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[MPS][BE] Delete complex_div
#154275
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][BE] Delete complex_div
#154275
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/154275
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 43 PendingAs of commit abbd314 with merge base 5859582 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Thanks |
@pytorchbot merge -f "MPS is green" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Eliminate some copy-pasta by introducing `REGISTER_FLOAT_BINARY_OP` and `REGISTER_INTEGER_BINARY_OP` macros Use `_METAL_310_PLUS` to guard bfloat dtype use Pull Request resolved: #154290 Approved by: https://github.com/yangw-dev, https://github.com/wdvr ghstack dependencies: #154275
This accomplishes following: - Fixes correctness problem with large integer types (though probably makes it slower, but this could not be avoided if one wants to compute accurate answer) - Makes op faster for floating point types (as Metal kernel invocation is faster than creating MPSGraph) - Eliminates need for several correctness workarounds Fixes #154171 Pull Request resolved: #154280 Approved by: https://github.com/dcci ghstack dependencies: #154275, #154290
Stack from ghstack (oldest at bottom):
complex_div
#154275An absolute no-op: delete
complex_div
fromUnaryKernel.metal
and use identical one fromc10/metal/utils.h