diff options
| author | Harsh Aggarwal (NVIDIA) <haaggarwal@nvidia.com> | 2025-09-03 10:45:57 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-03 05:15:57 +0000 |
| commit | 639978008de3a74c00e03451cd9fc74452766fcd (patch) | |
| tree | bcde5b0fc80c09a7f0d36ba2d17fbe8e48f0a94d /tests/compute | |
| parent | 4886bf95fcf6e7f38f48a346f4112fe340a453c8 (diff) | |
Fix#8086: Batch-10: Enable cuda tests (#8270)
Diffstat (limited to 'tests/compute')
| -rw-r--r-- | tests/compute/half-texture.slang | 8 | ||||
| -rw-r--r-- | tests/compute/mutating-and-inout.slang | 3 | ||||
| -rw-r--r-- | tests/compute/typedef-member.slang | 3 |
3 files changed, 12 insertions, 2 deletions
diff --git a/tests/compute/half-texture.slang b/tests/compute/half-texture.slang index ca51df3cc..6cda1f4c9 100644 --- a/tests/compute/half-texture.slang +++ b/tests/compute/half-texture.slang @@ -1,6 +1,7 @@ //TEST:SIMPLE(filecheck=CHECK_SPIRV): -target spirv -entry computeMain -profile cs_6_2 -emit-spirv-via-glsl //TEST:SIMPLE(filecheck=CHECK_SPIRV): -target spirv -entry computeMain -profile cs_6_2 -emit-spirv-directly //TEST:CROSS_COMPILE: -target dxil-assembly -entry computeMain -profile cs_6_2 +//TEST:SIMPLE(filecheck=CHECK_CUDA): -target cuda -entry computeMain -profile cs_6_2 //TEST_INPUT:ubuffer(data=[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], stride=16):out RWStructuredBuffer<int> outputBuffer; @@ -45,3 +46,10 @@ void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID) int index = pos.x + pos.y * 4; outputBuffer[index] = index; } + +// CHECK_CUDA: surf2Dread<__half> +// CHECK_CUDA: surf2Dread<__half2{{.*}}> +// CHECK_CUDA: surf2Dread<__half4{{.*}}> +// CHECK_CUDA: surf2Dwrite<__half> +// CHECK_CUDA: surf2Dwrite<__half2{{.*}}> +// CHECK_CUDA: surf2Dwrite<__half4{{.*}}> diff --git a/tests/compute/mutating-and-inout.slang b/tests/compute/mutating-and-inout.slang index 37cc30870..11132e407 100644 --- a/tests/compute/mutating-and-inout.slang +++ b/tests/compute/mutating-and-inout.slang @@ -2,7 +2,8 @@ // Test that calling a `[mutating]` method on an `inout` function parameter works. -//TEST(compute):COMPARE_COMPUTE: -shaderobj +//TEST(compute):COMPARE_COMPUTE: -cuda +//TEST(compute):COMPARE_COMPUTE: -vk //TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name=outputBuffer RWStructuredBuffer<int> outputBuffer; diff --git a/tests/compute/typedef-member.slang b/tests/compute/typedef-member.slang index ae3debd40..98694c839 100644 --- a/tests/compute/typedef-member.slang +++ b/tests/compute/typedef-member.slang @@ -1,4 +1,5 @@ //TEST(compute):COMPARE_COMPUTE: -shaderobj +//TEST(compute):COMPARE_COMPUTE: -shaderobj -cuda // Confirm that a struct type defined in a generic parent works @@ -35,4 +36,4 @@ void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID) float inVal = float(tid); float outVal = test(inVal); outputBuffer[tid] = outVal.x; -}
\ No newline at end of file +} |
