Skip to content

Conversation

trivedivivek
Copy link
Contributor

Summary:

Summary

This diff improves the overall performance of the linear shader by removing manual unrolling in the linear_qcsnw_tiled.glsl file.

The changes include:

  • Removing the [[unroll]] directive in the for loop to allow the compiler to automatically unroll the loop, which can lead to better performance.
  • Changing the type of mat1 from VEC4_T[TILE_ROWS] to T[TILE_ROWS][4] to better match the access pattern in the loop.

Differential Revision: D84571616

@trivedivivek trivedivivek requested a review from SS-JIA as a code owner October 14, 2025 15:13
Copy link

pytorch-bot bot commented Oct 14, 2025

🔗 Helpful Links

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

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

❌ 3 New Failures

As of commit b19c6be with merge base 4c4f235 (image):

NEW FAILURES - The following jobs have failed:

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

@meta-cla meta-cla 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 Oct 14, 2025
Copy link

meta-codesync bot commented Oct 14, 2025

@trivedivivek has exported this pull request. If you are a Meta employee, you can view the originating Diff in D84571616.

trivedivivek added a commit to trivedivivek/executorch that referenced this pull request Oct 14, 2025
…e. (pytorch#15110)

Summary:

### Summary

This diff improves the overall performance of the linear shader by removing manual unrolling in the `linear_qcsnw_tiled.glsl` file. 

The changes include:
- Removing the `[[unroll]]` directive in the for loop to allow the compiler to automatically unroll the loop, which can lead to better performance.
- Changing the type of `mat1` from `VEC4_T[TILE_ROWS]` to `T[TILE_ROWS][4]` to better match the access pattern in the loop.

Differential Revision: D84571616
@mergennachin mergennachin changed the title Removing manual unroll in linear shader to improve overall performance. [ET-VK] Removing manual unroll in linear shader to improve overall performance. Oct 15, 2025
trivedivivek added a commit to trivedivivek/executorch that referenced this pull request Oct 15, 2025
…e. (pytorch#15110)

Summary:

### Summary

This diff improves the overall performance of the linear shader by removing manual unrolling in the `linear_qcsnw_tiled.glsl` file. 

The changes include:
- Removing the `[[unroll]]` directive in the for loop to allow the compiler to automatically unroll the loop, which can lead to better performance.
- Changing the type of `mat1` from `VEC4_T[TILE_ROWS]` to `T[TILE_ROWS][4]` to better match the access pattern in the loop.

Differential Revision: D84571616
trivedivivek added a commit to trivedivivek/executorch that referenced this pull request Oct 15, 2025
…e. (pytorch#15110)

Summary:

### Summary

This diff improves the overall performance of the linear shader by removing manual unrolling in the `linear_qcsnw_tiled.glsl` file. 

The changes include:
- Removing the `[[unroll]]` directive in the for loop to allow the compiler to automatically unroll the loop, which can lead to better performance.
- Changing the type of `mat1` from `VEC4_T[TILE_ROWS]` to `T[TILE_ROWS][4]` to better match the access pattern in the loop.

Differential Revision: D84571616
trivedivivek added a commit to trivedivivek/executorch that referenced this pull request Oct 15, 2025
…e. (pytorch#15110)

Summary:

### Summary

This diff improves the overall performance of the linear shader by removing manual unrolling in the `linear_qcsnw_tiled.glsl` file. 

The changes include:
- Removing the `[[unroll]]` directive in the for loop to allow the compiler to automatically unroll the loop, which can lead to better performance.
- Changing the type of `mat1` from `VEC4_T[TILE_ROWS]` to `T[TILE_ROWS][4]` to better match the access pattern in the loop.

Reviewed By: SS-JIA

Differential Revision: D84571616
@trivedivivek trivedivivek added the release notes: vulkan Changes to the Vulkan backend delegate label Oct 15, 2025
…e. (pytorch#15110)

Summary:

### Summary

This diff improves the overall performance of the linear shader by removing manual unrolling in the `linear_qcsnw_tiled.glsl` file. 

The changes include:
- Removing the `[[unroll]]` directive in the for loop to allow the compiler to automatically unroll the loop, which can lead to better performance.
- Changing the type of `mat1` from `VEC4_T[TILE_ROWS]` to `T[TILE_ROWS][4]` to better match the access pattern in the loop.

Reviewed By: SS-JIA

Differential Revision: D84571616
trivedivivek added a commit to trivedivivek/executorch that referenced this pull request Oct 15, 2025
…e. (pytorch#15110)

Summary:

### Summary

This diff improves the overall performance of the linear shader by removing manual unrolling in the `linear_qcsnw_tiled.glsl` file. 

The changes include:
- Removing the `[[unroll]]` directive in the for loop to allow the compiler to automatically unroll the loop, which can lead to better performance.
- Changing the type of `mat1` from `VEC4_T[TILE_ROWS]` to `T[TILE_ROWS][4]` to better match the access pattern in the loop.

Reviewed By: SS-JIA

Differential Revision: D84571616
trivedivivek added a commit to trivedivivek/executorch that referenced this pull request Oct 15, 2025
…e. (pytorch#15110)

Summary:

### Summary

This diff improves the overall performance of the linear shader by removing manual unrolling in the `linear_qcsnw_tiled.glsl` file. 

The changes include:
- Removing the `[[unroll]]` directive in the for loop to allow the compiler to automatically unroll the loop, which can lead to better performance.
- Changing the type of `mat1` from `VEC4_T[TILE_ROWS]` to `T[TILE_ROWS][4]` to better match the access pattern in the loop.

Reviewed By: SS-JIA

Differential Revision: D84571616
@meta-codesync meta-codesync bot merged commit f8e199c into pytorch:main Oct 16, 2025
137 of 141 checks passed
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 meta-exported release notes: vulkan Changes to the Vulkan backend delegate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants