[ET-VK] Cache compiled SPIR-V and only recompile when changed#9652
[ET-VK] Cache compiled SPIR-V and only recompile when changed#9652facebook-github-bot merged 2 commits intogh/SS-JIA/202/basefrom
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 <ssjia@meta.com>
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 <ssjia@meta.com>
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_rebuildbuck config can be used to force all shaders to be built without using the cache.Differential Revision: D71916745