-
Notifications
You must be signed in to change notification settings - Fork 484
tests: gate cooperative-matrix tests on device feature support #12734
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: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| //TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK):-vk -emit-spirv-directly | ||
| //TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK):-vk -emit-spirv-directly -Xslang -DBAB | ||
| //TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK):-vk -emit-spirv-directly -render-feature cooperative-matrix | ||
| //TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK):-vk -emit-spirv-directly -Xslang -DBAB -render-feature cooperative-matrix | ||
|
Comment on lines
+1
to
+2
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win Keep the added Vulkan directives within 100 columns. The same added option makes the changed
As per coding guidelines, follow a 100-column line limit in Slang files. 📍 Affects 10 files
Source: Coding guidelines |
||
| //TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK):-cuda | ||
| //TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK):-cuda -Xslang -DBAB | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 Gap (consistency): mixed
-render-features/-render-featureon one lineThis line now carries both the plural
-render-features bfloat16and the singular-render-feature cooperative-matrix.tools/render-test/options.cpp:154treats the two spellings as aliases and both split on commas, so this is functionally correct — but mixing them on one directive reads as accidental.tests/cooperative-matrix/fp8.slang:1has the same pattern (-render-features fp8 -render-feature cooperative-matrix).Suggestion: collapse into a single plural form —
-render-features bfloat16,cooperative-matrix(and-render-features fp8,cooperative-matrixfor fp8.slang) — so each line declares its features once.