-
Notifications
You must be signed in to change notification settings - Fork 536
[ET-VK] Cache compiled SPIR-V and only recompile when changed #9652
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
## Context As title. Introduce a caching mechanism to store SPIR-V generated in a previous build to avoid re-compiling them. A shader will not be re-compiled if the source GLSL template is unchanged. For Meta internal builds, the `etvk.force_shader_rebuild` buck config can be used to force all shaders to be built without using the cache. Differential Revision: [D71916745](https://our.internmc.facebook.com/intern/diff/D71916745/) [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/9652
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit be86fb1 with merge base 7159650 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
## Context As title. Introduce a caching mechanism to store SPIR-V generated in a previous build to avoid re-compiling them. A shader will not be re-compiled if the source GLSL template is unchanged. For Meta internal builds, the `etvk.force_shader_rebuild` buck config can be used to force all shaders to be built without using the cache. Differential Revision: [D71916745](https://our.internmc.facebook.com/intern/diff/D71916745/) ghstack-source-id: 274260421 Pull Request resolved: #9652
This pull request was exported from Phabricator. Differential Revision: D71916745 |
This PR needs a
|
…ged" ## Context As title. Introduce a caching mechanism to store SPIR-V generated in a previous build to avoid re-compiling them. A shader will not be re-compiled if the source GLSL template is unchanged. For Meta internal builds, the `etvk.force_shader_rebuild` buck config can be used to force all shaders to be built without using the cache. Differential Revision: [D71916745](https://our.internmc.facebook.com/intern/diff/D71916745/) [ghstack-poisoned]
Pull Request resolved: #9652 ## Context As title. Introduce a caching mechanism to store SPIR-V generated in a previous build to avoid re-compiling them. A shader will not be re-compiled if the source GLSL template is unchanged. For Meta internal builds, the `etvk.force_shader_rebuild` buck config can be used to force all shaders to be built without using the cache. ghstack-source-id: 274281888 @exported-using-ghexport Differential Revision: [D71916745](https://our.internmc.facebook.com/intern/diff/D71916745/)
This pull request was exported from Phabricator. Differential Revision: D71916745 |
2f316c6
into
gh/SS-JIA/202/base
This PR was created by the merge bot to help merge the original PR into the main branch. ghstack PR number: #9652 by @SS-JIA ^ Please use this as the source of truth for the PR details, comments, and reviews ghstack PR base: https://github.com/pytorch/executorch/tree/gh/SS-JIA/202/base ghstack PR head: https://github.com/pytorch/executorch/tree/gh/SS-JIA/202/head Merge bot PR base: https://github.com/pytorch/executorch/tree/main Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/SS-JIA/202/orig @diff-train-skip-merge Co-authored-by: Stephen Jia <[email protected]>
This PR was created by the merge bot to help merge the original PR into the main branch. ghstack PR number: #9652 by @SS-JIA ^ Please use this as the source of truth for the PR details, comments, and reviews ghstack PR base: https://github.com/pytorch/executorch/tree/gh/SS-JIA/202/base ghstack PR head: https://github.com/pytorch/executorch/tree/gh/SS-JIA/202/head Merge bot PR base: https://github.com/pytorch/executorch/tree/main Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/SS-JIA/202/orig @diff-train-skip-merge Co-authored-by: Stephen Jia <[email protected]>
Stack from ghstack (oldest at bottom):
Context
As title. Introduce a caching mechanism to store SPIR-V generated in a previous build to avoid re-compiling them.
A shader will not be re-compiled if the source GLSL template is unchanged.
For Meta internal builds, the
etvk.force_shader_rebuild
buck config can be used to force all shaders to be built without using the cache.Differential Revision: D71916745