-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[MPS] Move MetalShaderLibrary to its own header #141475
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
Conversation
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/141475
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit f3e813f with merge base 2398e75 ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
| public: | ||
| MetalShaderLibrary(const std::string& src) | ||
| : shaderSource(src), nparams(0), compile_options(nullptr) {} | ||
| MetalShaderLibrary(const std::string& src, unsigned nparams_) |
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.
nit some of these strings by might be better as move by value instead of const ref since they are immeaditely stored in a member variable.
As classes with virtual methods must have virtual destructors Pull Request resolved: #141476 Approved by: https://github.com/cyyever, https://github.com/Skylion007 ghstack dependencies: #141474, #141475
By guarding Metal framework include and defining all ObjC protocols to dummy `void*` Pull Request resolved: #141477 Approved by: https://github.com/Skylion007 ghstack dependencies: #141474, #141475, #141476
That returns names of all the function in shader Pull Request resolved: #141499 Approved by: https://github.com/manuelcandales, https://github.com/Skylion007 ghstack dependencies: #141474, #141475, #141476, #141477
In preparation to be used from libtorch_python Pull Request resolved: pytorch#141475 Approved by: https://github.com/Skylion007 ghstack dependencies: pytorch#141474
As classes with virtual methods must have virtual destructors Pull Request resolved: pytorch#141476 Approved by: https://github.com/cyyever, https://github.com/Skylion007 ghstack dependencies: pytorch#141474, pytorch#141475
By guarding Metal framework include and defining all ObjC protocols to dummy `void*` Pull Request resolved: pytorch#141477 Approved by: https://github.com/Skylion007 ghstack dependencies: pytorch#141474, pytorch#141475, pytorch#141476
That returns names of all the function in shader Pull Request resolved: pytorch#141499 Approved by: https://github.com/manuelcandales, https://github.com/Skylion007 ghstack dependencies: pytorch#141474, pytorch#141475, pytorch#141476, pytorch#141477
Stack from ghstack (oldest at bottom):
In preparation to be used from libtorch_python