Skip to content

[ET-VK][testing] Improvement to operator test codegen system #11972

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 25, 2025

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

SS-JIA added 2 commits June 24, 2025 22:00
Pull Request resolved: #11825

## Changes

* Introduce `permute_buffer.glsl` and `permute_texture.glsl` compute shader templates to implement the permute operator

## Motivation

The existing implementation of permute produced incorrect outputs for width packed textures. Furthermore, there was no buffer implementation for the permute operator.

My goal with this diff is to introduce a more flexible implementation of permute that could work for any tensor representation.

## Performance impact

None expected.
ghstack-source-id: 292530157
@exported-using-ghexport

Differential Revision: [D76483755](https://our.internmc.facebook.com/intern/diff/D76483755/)
Pull Request resolved: #11826

## Changes

* Allow test cases to specify storage types / memory layouts for individual args
* Allow test cases to specify different data generation functions for individual args

## Motivation

> Allow test cases to specify storage types / memory layouts for individual args

Make it possible to test args that require specific storage types for certain input/output tensors.

> Allow test cases to specify different data generation functions for individual args

Useful for debugging operators during development.
ghstack-source-id: 292530160
@exported-using-ghexport

Differential Revision: [D77038777](https://our.internmc.facebook.com/intern/diff/D77038777/)
@pytorchbot pytorchbot requested a review from SS-JIA as a code owner June 25, 2025 16:37
Copy link

pytorch-bot bot commented Jun 25, 2025

🔗 Helpful Links

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

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

❌ 1 New Failure, 2 Pending, 1 Unrelated Failure

As of commit 405c96a with merge base 89bdd1d (image):

NEW FAILURE - The following job has failed:

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 Jun 25, 2025
Base automatically changed from gh/SS-JIA/245/orig to main June 25, 2025 17:43
@SS-JIA SS-JIA merged commit 6801a16 into main Jun 25, 2025
93 of 95 checks passed
@SS-JIA SS-JIA deleted the gh/SS-JIA/246/orig branch June 25, 2025 17:44
hinriksnaer pushed a commit to hinriksnaer/executorch that referenced this pull request Jun 26, 2025
…#11972)

## Changes

* Allow test cases to specify storage types / memory layouts for individual args
* Allow test cases to specify different data generation functions for individual args

## Motivation

> Allow test cases to specify storage types / memory layouts for individual args

Make it possible to test args that require specific storage types for certain input/output tensors.

> Allow test cases to specify different data generation functions for individual args

Useful for debugging operators during development.

Differential Revision: [D77038777](https://our.internmc.facebook.com/intern/diff/D77038777/)
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.

3 participants