Skip to content

Conversation

@SS-JIA
Copy link
Contributor

@SS-JIA SS-JIA commented Mar 27, 2025

Stack from ghstack (oldest at bottom):

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

## 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-poisoned]
@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/9716

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

❌ 1 New Failure

As of commit fb2a082 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.

SS-JIA added a commit that referenced this pull request Mar 27, 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/)

ghstack-source-id: 274443433
Pull Request resolved: #9716
@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
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D71973524

@github-actions
Copy link

This PR needs a release notes: label

If your changes are user facing and intended to be a part of release notes, please use a label starting with release notes:.

If not, please add the topic: not user facing label.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "topic: not user facing"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@facebook-github-bot facebook-github-bot merged commit a3612a1 into gh/SS-JIA/203/base Mar 27, 2025
82 of 84 checks passed
@facebook-github-bot facebook-github-bot deleted the gh/SS-JIA/203/head branch March 27, 2025 15:52
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. fb-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants