Skip to content

Add WavePrefixProduct Tests#1074

Open
bob80905 wants to merge 4 commits intollvm:mainfrom
bob80905:add_waveprefixproduct_tests
Open

Add WavePrefixProduct Tests#1074
bob80905 wants to merge 4 commits intollvm:mainfrom
bob80905:add_waveprefixproduct_tests

Conversation

@bob80905
Copy link
Copy Markdown
Contributor

@bob80905 bob80905 commented Apr 9, 2026

Adds WavePrefixProduct tests.
Based on WavePrefixSum, except the first lane returns 1 instead of 0.
Fixes #914

Copy link
Copy Markdown
Contributor

@joaosaffran joaosaffran left a comment

Choose a reason for hiding this comment

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

The testing logic looks fine. Left some comments regarding config changes. We need to specify some ULP level when working with floating types.

Actual: FOut4
Expected: FExpectedOut4
- Result: FExpectedOut5
Rule: BufferExact
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think we should have an small ULP here, like 1, for the float outputs

...
#--- end

# Bug: https://github.com/llvm/llvm-project/issues/186151
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This bug is regarding WavePrefixSum, is the same bug happening in here? If that is the case we should have a different bug anyways

# Bug: https://github.com/llvm/offload-test-suite/issues/351
# XFAIL: Metal

# Bug: https://github.com/llvm/offload-test-suite/issues/961
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Another WavePrefixSum specific bug

- Name: In
Format: Float16
Stride: 8
Data: [ 0x4000, 0x4200, 0x4500, 0x4700 ]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we get a comment bellow showing what those numbers are please?

Data: [ 0x3c00, 0x3c00, 0x3c00, 0x3c00, 0x4000, 0x4200, 0x4500, 0x4700, 0x4400, 0x4880, 0x4e40, 0x5220, 0x4800, 0x4ec0, 0x57d0, 0x5d5c ]
Results:
- Result: ExpectedOut1
Rule: BufferExact
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We definitely need ULP here. It should be higher than the float case, like 2 since I think the offload test expects integers in here.

@joaosaffran
Copy link
Copy Markdown
Contributor

Also, can we add the test-all label and push a new commit to trigger another build?

@bob80905 bob80905 added the test-all When applied to a PR this will opt-in to additional pre-merge test configurations.. label Apr 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test-all When applied to a PR this will opt-in to additional pre-merge test configurations..

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add test for WavePrefixProduct

3 participants