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: #12272 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/253/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/SS-JIA/253/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/253/orig
@diff-train-skip-merge

## Changes

* Fixed a bug with caching the generated GLSL file too early in `gen_vulkan_spv.py`

## Context

Currently, the `gen_vulkan_spv.py` script saves the generated GLSL file to the cache immediately after generation.

Then, when compiling the GLSL to SPIR-V, it checks the current generated GLSL file against the one in the cache. However, because of the early caching, this check will always pass, even when the GLSL template was updated and a SPIR-V recompilation is needed.

The fix is to only store the generated GLSL file after the SPIR-V compilation succeeds.

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

ghstack-source-id: 294852284
Pull Request resolved: #12272
@pytorchbot pytorchbot requested a review from SS-JIA as a code owner July 8, 2025 17:36
Copy link

pytorch-bot bot commented Jul 8, 2025

🔗 Helpful Links

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

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

⏳ 2 Pending, 1 Unrelated Failure

As of commit d3b9ceb with merge base ba19c75 (image):

FLAKY - The following job failed but was likely due to flakiness present on trunk:

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 Jul 8, 2025
Copy link

github-actions bot commented Jul 8, 2025

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

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

@psiddh psiddh merged commit 14085eb into main Jul 8, 2025
94 of 98 checks passed
@psiddh psiddh deleted the gh/SS-JIA/253/orig branch July 8, 2025 19:01
Tanish2101 pushed a commit to Tanish2101/executorch that referenced this pull request Jul 9, 2025
This PR was created by the merge bot to help merge the original PR into
the main branch.
ghstack PR number: pytorch#12272 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/253/base
ghstack PR head:
https://github.com/pytorch/executorch/tree/gh/SS-JIA/253/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/253/orig
@diff-train-skip-merge

Co-authored-by: Stephen Jia <ssjia@meta.com>
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants