Skip to content

Add LIT capabilibies for vulkan extensions #361

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

Merged
merged 1 commit into from
Aug 20, 2025

Conversation

llvm-beanz
Copy link
Collaborator

This adds the ability to conditionalize tests based on available vulkan extensions. Since a set of our tests depend on float_controls2 when compiled with Clang, this allows those tests to pass if run on a device with flaot_controls2 support.

The one additional tweak in this PR is to adjust the dot.fp16 test to have a wider tolerance range. DXC constant evaluates at a higher accuracy than the hardware evaluates at and our test assumes constant folded computation for the expected value. An ULP of 30 is wide enough to handle both the fp16 "correct" value and the wider computed value with rounding errors compounded.

This adds the ability to conditionalize tests based on available vulkan
extensions. Since a set of our tests depend on float_controls2 when
compiled with Clang, this allows those tests to pass if run on a device
with flaot_controls2 support.

The one additional tweak in this PR is to adjust the dot.fp16 test to
have a wider tolerance range. DXC constant evaluates at a higher
accuracy than the hardware evaluates at and our test assumes constant
folded computation for the expected value. An ULP of 30 is wide enough
to handle both the fp16 "correct" value and the wider computed value
with rounding errors compounded.
@llvm-beanz llvm-beanz merged commit 5ee579d into llvm:main Aug 20, 2025
18 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants