summaryrefslogtreecommitdiffstats
path: root/tests/cooperative-vector
diff options
context:
space:
mode:
authorJay Kwak <82421531+jkwak-work@users.noreply.github.com>2025-07-27 09:57:30 -0700
committerGitHub <noreply@github.com>2025-07-27 16:57:30 +0000
commitd311efd9d6ddc620f5960c6fc10f25daa628df6c (patch)
tree1601a36c21f9a672291421d0e548527f6b437986 /tests/cooperative-vector
parentc068bdea454f389b7dd7ce38bbb51a16dc6896ab (diff)
Fix failing CoopVec tests (#7937)
CPU tests were invalid because CPU target doesn't support float16_t. CUDA tests were failing due to minor precision error.
Diffstat (limited to 'tests/cooperative-vector')
-rw-r--r--tests/cooperative-vector/reduce-sum-accumulate-structuredbuffer.slang10
-rw-r--r--tests/cooperative-vector/reduce-sum-accumulate.slang10
2 files changed, 12 insertions, 8 deletions
diff --git a/tests/cooperative-vector/reduce-sum-accumulate-structuredbuffer.slang b/tests/cooperative-vector/reduce-sum-accumulate-structuredbuffer.slang
index 8903d35de..1c47c8152 100644
--- a/tests/cooperative-vector/reduce-sum-accumulate-structuredbuffer.slang
+++ b/tests/cooperative-vector/reduce-sum-accumulate-structuredbuffer.slang
@@ -1,14 +1,16 @@
//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK):-vk -render-feature cooperative-vector -output-using-type
-//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK):-cpu -output-using-type
+
+// CPU target doesn't support float16_t
+//DISABLE_TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK):-cpu -output-using-type
// HLSL doesn't support the training operations
//DISABLE_TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK):-dx12 -render-feature cooperative-vector -dx12-experimental -use-dxil -output-using-type -profile cs_6_9 -Xslang... -Xdxc -Vd -X.
// CHECK: type: half
// CHECK-NEXT: 112.000000
-// CHECK-NEXT: 2.000000
-// CHECK-NEXT: 3.000000
-// CHECK-NEXT: 4.000000
+// CHECK-NEXT: 2.00
+// CHECK-NEXT: 3.00
+// CHECK-NEXT: 4.0
//TEST_INPUT:ubuffer(data=[0 0 0 0 ], stride=2):out,name=outputBuffer
diff --git a/tests/cooperative-vector/reduce-sum-accumulate.slang b/tests/cooperative-vector/reduce-sum-accumulate.slang
index 8903d35de..1c47c8152 100644
--- a/tests/cooperative-vector/reduce-sum-accumulate.slang
+++ b/tests/cooperative-vector/reduce-sum-accumulate.slang
@@ -1,14 +1,16 @@
//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK):-vk -render-feature cooperative-vector -output-using-type
-//TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK):-cpu -output-using-type
+
+// CPU target doesn't support float16_t
+//DISABLE_TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK):-cpu -output-using-type
// HLSL doesn't support the training operations
//DISABLE_TEST(compute):COMPARE_COMPUTE(filecheck-buffer=CHECK):-dx12 -render-feature cooperative-vector -dx12-experimental -use-dxil -output-using-type -profile cs_6_9 -Xslang... -Xdxc -Vd -X.
// CHECK: type: half
// CHECK-NEXT: 112.000000
-// CHECK-NEXT: 2.000000
-// CHECK-NEXT: 3.000000
-// CHECK-NEXT: 4.000000
+// CHECK-NEXT: 2.00
+// CHECK-NEXT: 3.00
+// CHECK-NEXT: 4.0
//TEST_INPUT:ubuffer(data=[0 0 0 0 ], stride=2):out,name=outputBuffer