-
Notifications
You must be signed in to change notification settings - Fork 25.7k
[MPS] Add CompileShader method #141478
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 CompileShader method #141478
Conversation
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/141478
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 8b827fa with merge base 95e7fcf ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
|
I'm curious about the use of this addition since it accepts one argument only. I assume there is no cuda counterpart in PyTorch. |
@qqaatw it's still work in progress :) But final version will accept any number of arguments. As for usefulness, at the very least it unblocks quick prototyping and usecases like shader toys, but in the long run it can enable a pretty advanced codegen. |
|
@pytorchbot revert -m "Broke doctests, by trying to run MPS example on Linux" -c nosignal |
|
@pytorchbot successfully started a revert job. Check the current status here. |
This reverts commit 0478fee. Reverted #141478 on behalf of https://github.com/malfet due to Broke doctests, by trying to run MPS example on Linux ([comment](#141478 (comment)))
|
@malfet your PR has been successfully reverted. |
|
@pytorchbot merge -f "No pain no gain" |
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 |
ghstack-source-id: 0d9e621 Pull Request resolved: pytorch/pytorch#141478
Stack from ghstack (oldest at bottom):
This allows one to do something like that
And in general enables writing custom operators using Metal shaders purely in Python