Skip to content
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

[RISCV] Fix SiFive7 formula for Reductions and ordered Reductions #65385

Merged
merged 1 commit into from
Sep 6, 2023

Conversation

michaelmaitland
Copy link
Contributor

@michaelmaitland michaelmaitland commented Sep 5, 2023

Reductions specified the correct formula in the comments but was
implemented incorrectly.

Ordered reductions formula was refined to be more accurate to actual
hardware.

A llvm-mca test case for reductions is added so that we have a better
idea of how the model is performing.

@michaelmaitland michaelmaitland requested a review from a team as a code owner September 5, 2023 17:04
@michaelmaitland michaelmaitland changed the title [RISCV] Split VFWREDUSUM and VFWREDOSUM pseudos and Fix SiFive7 formula for Reductions and ordered Reductions [RISCV] Fix SiFive7 formula for Reductions and ordered Reductions Sep 5, 2023
@michaelmaitland
Copy link
Contributor Author

This change is stacked on #65386

Reductions specified the correct formula in the comments but was
implemented incorrectly.

Ordered reductions formula was refined to be more accurate to actual
hardware.

A llvm-mca test case for reductions is added so that we have a better
idea of how the model is performing.
Copy link
Collaborator

@topperc topperc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@wangpc-pp wangpc-pp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@michaelmaitland michaelmaitland merged commit 5b7982f into llvm:main Sep 6, 2023
2 checks passed
@michaelmaitland michaelmaitland deleted the sifive7-mca-reductions branch September 6, 2023 03:04
Guzhu-AMD pushed a commit to GPUOpen-Drivers/llvm-project that referenced this pull request Sep 7, 2023
Local branch amd-gfx ee2d08d Merged main:1438544e2364 into amd-gfx:33cd95d2c4a1
Remote branch main 5b7982f [RISCV] Fix SiFive7 formula for Reductions and ordered Reductions  (llvm#65385)
avillega pushed a commit to avillega/llvm-project that referenced this pull request Sep 11, 2023
…vm#65385)

Reductions specified the correct formula in the comments but was
implemented incorrectly.

Ordered reductions formula was refined to be more accurate to actual
hardware.

A llvm-mca test case for reductions is added so that we have a better
idea of how the model is performing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants