Skip to content

Verify that flags are correctly set when overflowing UAV resources#992

Open
joaosaffran wants to merge 4 commits intollvm:mainfrom
joaosaffran:test/many-unbounded-uavs
Open

Verify that flags are correctly set when overflowing UAV resources#992
joaosaffran wants to merge 4 commits intollvm:mainfrom
joaosaffran:test/many-unbounded-uavs

Conversation

@joaosaffran
Copy link
Contributor

@joaosaffran joaosaffran commented Mar 18, 2026

This patch adds a new test to make sure we pass validation when UAV resources are overflowing. Such overflow would case Max64UAVs to not be set and the code wouldn't pass DXV validation

@joaosaffran joaosaffran added the test-all When applied to a PR this will opt-in to additional pre-merge test configurations.. label Mar 18, 2026

# Unimplemented https://github.com/llvm/offload-test-suite/issues/305
# XFAIL: Metal
# XFAIL: DXC && Vulkan && KosmicKrisp
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we have an issue for this XFAIL?

Copy link
Contributor

Choose a reason for hiding this comment

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

Is KosmicKrisp even a valid feature flag?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, copy and paste forgot to update, this test was copied from unbounded-array.test. I've removed it, will create a new issue if such bugs persist in here as well

Copy link
Collaborator

@llvm-beanz llvm-beanz left a comment

Choose a reason for hiding this comment

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

Can you add a comment somewhere explaining where the overflow occurs? I don't see anything here that I'd expect is an overflow.

@joaosaffran
Copy link
Contributor Author

@llvm-beanz, edited the PR description comment. This test make sure the UAV count saturates at UNIT32_MAX when we are counting those to set Max64UAVs. We previously made some changes that lead us to figure this case wasn't being checked and we could overflow in there and incorrectly unset the flag.

Remove XFAIL condition for DXC, Vulkan, and KosmicKrisp.
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.

3 participants