-
Notifications
You must be signed in to change notification settings - Fork 690
Improving quantized matmul performance by devectorizing shader. #15274
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
base: main
Are you sure you want to change the base?
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/15274
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ❌ 1 New Failure, 124 PendingAs of commit 81e68f6 with merge base 5d71c9b ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@trivedivivek has exported this pull request. If you are a Meta employee, you can view the originating Diff in D85023829. |
…rch#15274) Summary: This diff improves the performance of quantized matrix multiplication by devectorizing the shader. An example modification is shown below: ```glsl // Before VEC4_T sums[TILE_ROWS][TILE_TXCOLS]; // After T sums[TILE_ROWS * TILE_TXCOLS * 4]; // Before sums[r][${c}] = VEC4_T(0.0); // After for (int j = 0; j < 4; j++) { sums[r * TILE_TXCOLS * 4 + ${c} * 4 + j] = T(0.0); } ``` Differential Revision: D85023829
4913210
to
b831b18
Compare
…rch#15274) Summary: This diff improves the performance of quantized matrix multiplication by devectorizing the shader. An example modification is shown below: ```glsl // Before VEC4_T sums[TILE_ROWS][TILE_TXCOLS]; // After T sums[TILE_ROWS * TILE_TXCOLS * 4]; // Before sums[r][${c}] = VEC4_T(0.0); // After for (int j = 0; j < 4; j++) { sums[r * TILE_TXCOLS * 4 + ${c} * 4 + j] = T(0.0); } ``` Differential Revision: D85023829
b831b18
to
88f7aa0
Compare
…rch#15274) Summary: This diff improves the performance of quantized matrix multiplication by devectorizing the shader. An example modification is shown below: ```glsl // Before VEC4_T sums[TILE_ROWS][TILE_TXCOLS]; // After T sums[TILE_ROWS * TILE_TXCOLS * 4]; // Before sums[r][${c}] = VEC4_T(0.0); // After for (int j = 0; j < 4; j++) { sums[r * TILE_TXCOLS * 4 + ${c} * 4 + j] = T(0.0); } ``` Differential Revision: D85023829
…rch#15274) Summary: This diff improves the performance of quantized matrix multiplication by devectorizing the shader. An example modification is shown below: ```glsl // Before VEC4_T sums[TILE_ROWS][TILE_TXCOLS]; // After T sums[TILE_ROWS * TILE_TXCOLS * 4]; // Before sums[r][${c}] = VEC4_T(0.0); // After for (int j = 0; j < 4; j++) { sums[r * TILE_TXCOLS * 4 + ${c} * 4 + j] = T(0.0); } ``` Differential Revision: D85023829
88f7aa0
to
1a04777
Compare
…rch#15274) Summary: This diff improves the performance of quantized matrix multiplication by devectorizing the shader. An example modification is shown below: ```glsl // Before VEC4_T sums[TILE_ROWS][TILE_TXCOLS]; // After T sums[TILE_ROWS * TILE_TXCOLS * 4]; // Before sums[r][${c}] = VEC4_T(0.0); // After for (int j = 0; j < 4; j++) { sums[r * TILE_TXCOLS * 4 + ${c} * 4 + j] = T(0.0); } ``` Reviewed By: SS-JIA Differential Revision: D85023829
Summary: The diff includes minor performance improvements to the quantized matrix multiplication shader. Reviewed By: SS-JIA Differential Revision: D84998542
…rch#15274) Summary: This diff improves the performance of quantized matrix multiplication by devectorizing the shader. An example modification is shown below: ```glsl // Before VEC4_T sums[TILE_ROWS][TILE_TXCOLS]; // After T sums[TILE_ROWS * TILE_TXCOLS * 4]; // Before sums[r][${c}] = VEC4_T(0.0); // After for (int j = 0; j < 4; j++) { sums[r * TILE_TXCOLS * 4 + ${c} * 4 + j] = T(0.0); } ``` Reviewed By: SS-JIA Differential Revision: D85023829
1a04777
to
81e68f6
Compare
…rch#15274) Summary: This diff improves the performance of quantized matrix multiplication by devectorizing the shader. An example modification is shown below: ```glsl // Before VEC4_T sums[TILE_ROWS][TILE_TXCOLS]; // After T sums[TILE_ROWS * TILE_TXCOLS * 4]; // Before sums[r][${c}] = VEC4_T(0.0); // After for (int j = 0; j < 4; j++) { sums[r * TILE_TXCOLS * 4 + ${c} * 4 + j] = T(0.0); } ``` Reviewed By: SS-JIA Differential Revision: D85023829
Summary:
This diff improves the performance of quantized matrix multiplication by devectorizing the shader.
An example modification is shown below:
Differential Revision: D85023829