Skip to content

Conversation

SS-JIA
Copy link
Contributor

@SS-JIA SS-JIA commented Jul 8, 2025

Stack from ghstack (oldest at bottom):

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

## 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-poisoned]
SS-JIA added a commit that referenced this pull request Jul 8, 2025
## 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
Copy link

pytorch-bot bot commented Jul 8, 2025

🔗 Helpful Links

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

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

❌ 1 New Failure, 1 Unrelated Failure

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

NEW FAILURE - The following job has failed:

BROKEN TRUNK - The following job failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

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

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Jul 8, 2025
@facebook-github-bot
Copy link
Contributor

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

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.

@facebook-github-bot facebook-github-bot merged commit 62ed54b into gh/SS-JIA/253/base Jul 8, 2025
96 of 101 checks passed
@facebook-github-bot facebook-github-bot deleted the gh/SS-JIA/253/head branch July 8, 2025 17:35
psiddh pushed a commit that referenced this pull request Jul 8, 2025
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

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants