Skip to content

Conversation

@pytorchbot
Copy link
Collaborator

This PR was created by the merge bot to help merge the original PR into the main branch.
ghstack PR number: #9716 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/203/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/SS-JIA/203/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/203/orig
@diff-train-skip-merge

## Context

There was a bug in the SPIR-V cache; essentially, once a shader variant is processed it will save the source GLSL to the cache. However, if another variant that uses the same source GLSL then checks the cache, it will think that the source file is unchanged and therefore will not recompile.

To fix this, defer saving the source GLSL files only when all shaders have been compiled.

Differential Revision: [D71973524](https://our.internmc.facebook.com/intern/diff/D71973524/)

ghstack-source-id: 274443433
Pull Request resolved: #9716
@pytorchbot pytorchbot requested a review from SS-JIA as a code owner March 27, 2025 15:52
@pytorch-bot
Copy link

pytorch-bot bot commented Mar 27, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/9720

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 New Failure, 2 Pending

As of commit 68f4d58 with merge base 95702dc (image):

NEW FAILURE - The following job has failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 27, 2025
@kirklandsign kirklandsign merged commit ef8204c into main Mar 27, 2025
81 of 83 checks passed
@kirklandsign kirklandsign deleted the gh/SS-JIA/203/orig branch March 27, 2025 17:12
kirklandsign pushed a commit that referenced this pull request Apr 11, 2025
## Context

There was a bug in the SPIR-V cache; essentially, once a shader variant is processed it will save the source GLSL to the cache. However, if another variant that uses the same source GLSL then checks the cache, it will think that the source file is unchanged and therefore will not recompile.

To fix this, defer saving the source GLSL files only when all shaders have been compiled.

Differential Revision: [D71973524](https://our.internmc.facebook.com/intern/diff/D71973524/)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. topic: not user facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants