Skip to content

[ET-VK] Creating specialized version of conv2d pw shader for X and Y stride = 1 and padding = 0. #11137

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 6 commits into from
May 28, 2025

Conversation

trivedivivek
Copy link
Contributor

@trivedivivek trivedivivek commented May 27, 2025

Stack from ghstack (oldest at bottom):

This diff creates a specialized version of the conv2d pw shader for X and Y stride equals 1 and padding equals 0.

  • It adds a new file conv2d_pw_s1p0.glsl, which implements the conv2d pw shader for X and Y stride equals 1 and padding equals 0.
  • It adds a new file conv2d_pw_s1p0.yaml, which defines the parameters and shader variants for the specialized conv2d pw shader.
  • The file Convolution.cpp is modified to add a new parameter stride_1_padding_0 to the conv2d function, which enables the use of the specialized shader.

Differential Revision: D75423931

…stride = 1 and padding = 0.

This diff creates a specialized version of the conv2d pw shader for X and Y stride equals 1 and padding equals 0.

* It adds a new file `conv2d_pw_s1p0.glsl`, which implements the conv2d pw shader for X and Y stride equals 1 and padding equals 0.
* It adds a new file `conv2d_pw_s1p0.yaml`, which defines the parameters and shader variants for the specialized conv2d pw shader.
* The file `Convolution.cpp` is modified to add a new parameter `stride_1_padding_0` to the `conv2d` function, which enables the use of the specialized shader.

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

[ghstack-poisoned]
@trivedivivek trivedivivek requested a review from SS-JIA as a code owner May 27, 2025 04:41
Copy link

pytorch-bot bot commented May 27, 2025

🔗 Helpful Links

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

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

✅ You can merge normally! (1 Unrelated Failure)

As of commit 9dacfc0 with merge base 380eb5f (image):

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
Copy link
Contributor

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

…or X and Y stride = 1 and padding = 0."

This diff creates a specialized version of the conv2d pw shader for X and Y stride equals 1 and padding equals 0.

* It adds a new file `conv2d_pw_s1p0.glsl`, which implements the conv2d pw shader for X and Y stride equals 1 and padding equals 0.
* It adds a new file `conv2d_pw_s1p0.yaml`, which defines the parameters and shader variants for the specialized conv2d pw shader.
* The file `Convolution.cpp` is modified to add a new parameter `stride_1_padding_0` to the `conv2d` function, which enables the use of the specialized shader.

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

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

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

…or X and Y stride = 1 and padding = 0."

This diff creates a specialized version of the conv2d pw shader for X and Y stride equals 1 and padding equals 0.

* It adds a new file `conv2d_pw_s1p0.glsl`, which implements the conv2d pw shader for X and Y stride equals 1 and padding equals 0.
* It adds a new file `conv2d_pw_s1p0.yaml`, which defines the parameters and shader variants for the specialized conv2d pw shader.
* The file `Convolution.cpp` is modified to add a new parameter `stride_1_padding_0` to the `conv2d` function, which enables the use of the specialized shader.

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

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

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

@trivedivivek trivedivivek added the release notes: none Do not include this in the release notes label May 27, 2025
…or X and Y stride = 1 and padding = 0."

This diff creates a specialized version of the conv2d pw shader for X and Y stride equals 1 and padding equals 0.

* It adds a new file `conv2d_pw_s1p0.glsl`, which implements the conv2d pw shader for X and Y stride equals 1 and padding equals 0.
* It adds a new file `conv2d_pw_s1p0.yaml`, which defines the parameters and shader variants for the specialized conv2d pw shader.
* The file `Convolution.cpp` is modified to add a new parameter `stride_1_padding_0` to the `conv2d` function, which enables the use of the specialized shader.

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

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

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

…or X and Y stride = 1 and padding = 0."

This diff creates a specialized version of the conv2d pw shader for X and Y stride equals 1 and padding equals 0.

* It adds a new file `conv2d_pw_s1p0.glsl`, which implements the conv2d pw shader for X and Y stride equals 1 and padding equals 0.
* It adds a new file `conv2d_pw_s1p0.yaml`, which defines the parameters and shader variants for the specialized conv2d pw shader.
* The file `Convolution.cpp` is modified to add a new parameter `stride_1_padding_0` to the `conv2d` function, which enables the use of the specialized shader.

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

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

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

…or X and Y stride = 1 and padding = 0."

This diff creates a specialized version of the conv2d pw shader for X and Y stride equals 1 and padding equals 0.

* It adds a new file `conv2d_pw_s1p0.glsl`, which implements the conv2d pw shader for X and Y stride equals 1 and padding equals 0.
* It adds a new file `conv2d_pw_s1p0.yaml`, which defines the parameters and shader variants for the specialized conv2d pw shader.
* The file `Convolution.cpp` is modified to add a new parameter `stride_1_padding_0` to the `conv2d` function, which enables the use of the specialized shader.

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

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot facebook-github-bot merged commit 73732ac into gh/trivedivivek/97/base May 28, 2025
97 of 98 checks passed
@facebook-github-bot facebook-github-bot deleted the gh/trivedivivek/97/head branch May 28, 2025 15:54
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: none Do not include this in the release notes topic: not user facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants