Skip to content

Conversation

@trivedivivek
Copy link
Contributor

Summary:

Summary

This diff rearranges calculations in the quantized linear tiled implementation to reduce register usage and gain performance.

The changes include:

  • Moving the declaration of mat1 within the for loop to reduce register usage.
  • Adding a conditional statement to calculate in_row_txstride when IN_STORAGE is "buffer".

The changes aim to improve performance by reducing register usage in the shader program.

Differential Revision: D84608770

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

pytorch-bot bot commented Oct 14, 2025

🔗 Helpful Links

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

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

❌ 2 New Failures

As of commit 8b5a2c4 with merge base 810b8e8 (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
@meta-codesync
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 D84608770.

@github-actions
Copy link

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.

trivedivivek added a commit to trivedivivek/executorch that referenced this pull request Oct 15, 2025
…reduce register usage and gain performance. (pytorch#15111)

Summary:

### Summary

This diff rearranges calculations in the quantized linear tiled implementation to reduce register usage and gain performance. 

The changes include:
- Moving the declaration of `mat1` within the for loop to reduce register usage.
- Adding a conditional statement to calculate `in_row_txstride` when `IN_STORAGE` is "buffer".

The changes aim to improve performance by reducing register usage in the shader program.

Differential Revision: D84608770
trivedivivek added a commit to trivedivivek/executorch that referenced this pull request Oct 15, 2025
…reduce register usage and gain performance. (pytorch#15111)

Summary:

### Summary

This diff rearranges calculations in the quantized linear tiled implementation to reduce register usage and gain performance. 

The changes include:
- Moving the declaration of `mat1` within the for loop to reduce register usage.
- Adding a conditional statement to calculate `in_row_txstride` when `IN_STORAGE` is "buffer".

The changes aim to improve performance by reducing register usage in the shader program.

Reviewed By: SS-JIA

Differential Revision: D84608770
trivedivivek added a commit to trivedivivek/executorch that referenced this pull request Oct 15, 2025
…reduce register usage and gain performance. (pytorch#15111)

Summary:

### Summary

This diff rearranges calculations in the quantized linear tiled implementation to reduce register usage and gain performance. 

The changes include:
- Moving the declaration of `mat1` within the for loop to reduce register usage.
- Adding a conditional statement to calculate `in_row_txstride` when `IN_STORAGE` is "buffer".

The changes aim to improve performance by reducing register usage in the shader program.

Reviewed By: SS-JIA

Differential Revision: D84608770
trivedivivek added a commit to trivedivivek/executorch that referenced this pull request Oct 16, 2025
…reduce register usage and gain performance. (pytorch#15111)

Summary:

### Summary

This diff rearranges calculations in the quantized linear tiled implementation to reduce register usage and gain performance. 

The changes include:
- Moving the declaration of `mat1` within the for loop to reduce register usage.
- Adding a conditional statement to calculate `in_row_txstride` when `IN_STORAGE` is "buffer".

The changes aim to improve performance by reducing register usage in the shader program.

Reviewed By: SS-JIA

Differential Revision: D84608770
trivedivivek added a commit to trivedivivek/executorch that referenced this pull request Oct 16, 2025
…reduce register usage and gain performance. (pytorch#15111)

Summary:

### Summary

This diff rearranges calculations in the quantized linear tiled implementation to reduce register usage and gain performance. 

The changes include:
- Moving the declaration of `mat1` within the for loop to reduce register usage.
- Adding a conditional statement to calculate `in_row_txstride` when `IN_STORAGE` is "buffer".

The changes aim to improve performance by reducing register usage in the shader program.

Reviewed By: SS-JIA

Differential Revision: D84608770
trivedivivek added a commit to trivedivivek/executorch that referenced this pull request Oct 16, 2025
…reduce register usage and gain performance. (pytorch#15111)

Summary:

### Summary

This diff rearranges calculations in the quantized linear tiled implementation to reduce register usage and gain performance. 

The changes include:
- Moving the declaration of `mat1` within the for loop to reduce register usage.
- Adding a conditional statement to calculate `in_row_txstride` when `IN_STORAGE` is "buffer".

The changes aim to improve performance by reducing register usage in the shader program.

Reviewed By: SS-JIA

Differential Revision: D84608770
trivedivivek added a commit to trivedivivek/executorch that referenced this pull request Oct 16, 2025
…reduce register usage and gain performance. (pytorch#15111)

Summary:

### Summary

This diff rearranges calculations in the quantized linear tiled implementation to reduce register usage and gain performance. 

The changes include:
- Moving the declaration of `mat1` within the for loop to reduce register usage.
- Adding a conditional statement to calculate `in_row_txstride` when `IN_STORAGE` is "buffer".

The changes aim to improve performance by reducing register usage in the shader program.

Reviewed By: SS-JIA

Differential Revision: D84608770
trivedivivek added a commit to trivedivivek/executorch that referenced this pull request Oct 16, 2025
…reduce register usage and gain performance. (pytorch#15111)

Summary:

### Summary

This diff rearranges calculations in the quantized linear tiled implementation to reduce register usage and gain performance. 

The changes include:
- Moving the declaration of `mat1` within the for loop to reduce register usage.
- Adding a conditional statement to calculate `in_row_txstride` when `IN_STORAGE` is "buffer".

The changes aim to improve performance by reducing register usage in the shader program.

Reviewed By: SS-JIA

Differential Revision: D84608770
trivedivivek added a commit to trivedivivek/executorch that referenced this pull request Oct 16, 2025
…reduce register usage and gain performance. (pytorch#15111)

Summary:

### Summary

This diff rearranges calculations in the quantized linear tiled implementation to reduce register usage and gain performance. 

The changes include:
- Moving the declaration of `mat1` within the for loop to reduce register usage.
- Adding a conditional statement to calculate `in_row_txstride` when `IN_STORAGE` is "buffer".

The changes aim to improve performance by reducing register usage in the shader program.

Reviewed By: SS-JIA

Differential Revision: D84608770
trivedivivek added a commit to trivedivivek/executorch that referenced this pull request Oct 16, 2025
…reduce register usage and gain performance. (pytorch#15111)

Summary:

### Summary

This diff rearranges calculations in the quantized linear tiled implementation to reduce register usage and gain performance. 

The changes include:
- Moving the declaration of `mat1` within the for loop to reduce register usage.
- Adding a conditional statement to calculate `in_row_txstride` when `IN_STORAGE` is "buffer".

The changes aim to improve performance by reducing register usage in the shader program.

Reviewed By: SS-JIA

Differential Revision: D84608770
trivedivivek added a commit to trivedivivek/executorch that referenced this pull request Oct 16, 2025
…reduce register usage and gain performance. (pytorch#15111)

Summary:

### Summary

This diff rearranges calculations in the quantized linear tiled implementation to reduce register usage and gain performance. 

The changes include:
- Moving the declaration of `mat1` within the for loop to reduce register usage.
- Adding a conditional statement to calculate `in_row_txstride` when `IN_STORAGE` is "buffer".

The changes aim to improve performance by reducing register usage in the shader program.

Reviewed By: SS-JIA

Differential Revision: D84608770
trivedivivek added a commit to trivedivivek/executorch that referenced this pull request Oct 16, 2025
…reduce register usage and gain performance. (pytorch#15111)

Summary:

### Summary

This diff rearranges calculations in the quantized linear tiled implementation to reduce register usage and gain performance. 

The changes include:
- Moving the declaration of `mat1` within the for loop to reduce register usage.
- Adding a conditional statement to calculate `in_row_txstride` when `IN_STORAGE` is "buffer".

The changes aim to improve performance by reducing register usage in the shader program.

Reviewed By: SS-JIA

Differential Revision: D84608770
…reduce register usage and gain performance. (pytorch#15111)

Summary:

### Summary

This diff rearranges calculations in the quantized linear tiled implementation to reduce register usage and gain performance. 

The changes include:
- Moving the declaration of `mat1` within the for loop to reduce register usage.
- Adding a conditional statement to calculate `in_row_txstride` when `IN_STORAGE` is "buffer".

The changes aim to improve performance by reducing register usage in the shader program.

Reviewed By: SS-JIA

Differential Revision: D84608770
@meta-codesync meta-codesync bot merged commit bdc9cef into pytorch:main Oct 16, 2025
138 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants