Skip to content

Conversation

@SS-JIA
Copy link
Contributor

@SS-JIA SS-JIA commented May 1, 2025

Stack from ghstack (oldest at bottom):

Changes

Fixed a bug in the caching mechanism in the gen_vulkan_spv.py script where changing the YAML file will not trigger a recompile.

Allow the python codegen to be applied to files other than GLSL compute shaders. One example application of this is generating header files (.glslh files) which can be shared among multiple .glsl files. This enables better code re-use and organization.

For a simple application of this, see the reference_matmul_common.glslh file that was added to the test compute shader library.

Differential Revision: D74008572

## Changes

Fixed a bug in the caching mechanism in the `gen_vulkan_spv.py` script where changing the YAML file will not trigger a recompile.

Allow the python codegen to be applied to files other than GLSL compute shaders. One example application of this is generating header files (`.glslh` files) which can be shared among multiple `.glsl` files. This enables better code re-use and organization.

For a simple application of this, see the `reference_matmul_common.glslh` file that was added to the test compute shader library.

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

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented May 1, 2025

🔗 Helpful Links

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

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

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

✅ No Failures

As of commit 276d882 with merge base cd3b53d (image):
💚 Looks good so far! There are no failures yet. 💚

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

SS-JIA added a commit that referenced this pull request May 1, 2025
## Changes

Fixed a bug in the caching mechanism in the `gen_vulkan_spv.py` script where changing the YAML file will not trigger a recompile.

Allow the python codegen to be applied to files other than GLSL compute shaders. One example application of this is generating header files (`.glslh` files) which can be shared among multiple `.glsl` files. This enables better code re-use and organization.

For a simple application of this, see the `reference_matmul_common.glslh` file that was added to the test compute shader library.

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

ghstack-source-id: 281448039
Pull Request resolved: #10605
@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 May 1, 2025
@facebook-github-bot
Copy link
Contributor

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

@SS-JIA SS-JIA added the release notes: vulkan Changes to the Vulkan backend delegate label May 1, 2025
## Changes

Fixed a bug in the caching mechanism in the `gen_vulkan_spv.py` script where changing the YAML file will not trigger a recompile.

Allow the python codegen to be applied to files other than GLSL compute shaders. One example application of this is generating header files (`.glslh` files) which can be shared among multiple `.glsl` files. This enables better code re-use and organization.

For a simple application of this, see the `reference_matmul_common.glslh` file that was added to the test compute shader library.

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

[ghstack-poisoned]
SS-JIA added a commit that referenced this pull request May 1, 2025
Pull Request resolved: #10605

## Changes

Fixed a bug in the caching mechanism in the `gen_vulkan_spv.py` script where changing the YAML file will not trigger a recompile.

Allow the python codegen to be applied to files other than GLSL compute shaders. One example application of this is generating header files (`.glslh` files) which can be shared among multiple `.glsl` files. This enables better code re-use and organization.

For a simple application of this, see the `reference_matmul_common.glslh` file that was added to the test compute shader library.
ghstack-source-id: 281449549
@exported-using-ghexport

Differential Revision: [D74008572](https://our.internmc.facebook.com/intern/diff/D74008572/)
@facebook-github-bot
Copy link
Contributor

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

## Changes

Fixed a bug in the caching mechanism in the `gen_vulkan_spv.py` script where changing the YAML file will not trigger a recompile.

Allow the python codegen to be applied to files other than GLSL compute shaders. One example application of this is generating header files (`.glslh` files) which can be shared among multiple `.glsl` files. This enables better code re-use and organization.

For a simple application of this, see the `reference_matmul_common.glslh` file that was added to the test compute shader library.

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

[ghstack-poisoned]
SS-JIA added a commit that referenced this pull request May 5, 2025
Pull Request resolved: #10605

## Changes

Fixed a bug in the caching mechanism in the `gen_vulkan_spv.py` script where changing the YAML file will not trigger a recompile.

Allow the python codegen to be applied to files other than GLSL compute shaders. One example application of this is generating header files (`.glslh` files) which can be shared among multiple `.glsl` files. This enables better code re-use and organization.

For a simple application of this, see the `reference_matmul_common.glslh` file that was added to the test compute shader library.
ghstack-source-id: 282026609
@exported-using-ghexport

Differential Revision: [D74008572](https://our.internmc.facebook.com/intern/diff/D74008572/)
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot facebook-github-bot merged commit 026ccfa into gh/SS-JIA/223/base May 5, 2025
87 checks passed
@facebook-github-bot facebook-github-bot deleted the gh/SS-JIA/223/head branch May 5, 2025 16:53
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 release notes: vulkan Changes to the Vulkan backend delegate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants