From 7b4d02803344d52af8d979da1d0f42936d360f00 Mon Sep 17 00:00:00 2001 From: "Harsh Aggarwal (NVIDIA)" Date: Mon, 25 Aug 2025 10:49:56 +0530 Subject: Fix#8083: Batch-7: Enable cuda tests (#8267) --- tests/compute/byte-address-buffer-aligned.slang | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'tests/compute/byte-address-buffer-aligned.slang') diff --git a/tests/compute/byte-address-buffer-aligned.slang b/tests/compute/byte-address-buffer-aligned.slang index a65444ec2..da2abd0ac 100644 --- a/tests/compute/byte-address-buffer-aligned.slang +++ b/tests/compute/byte-address-buffer-aligned.slang @@ -1,11 +1,13 @@ // byte-address-buffer-aligned.slang //TEST(compute, vulkan):COMPARE_COMPUTE_EX(filecheck-buffer=CHECK):-slang -compute -d3d12 -profile cs_6_0 -use-dxil -shaderobj -output-using-type //DISABLED_TEST(compute, vulkan):COMPARE_COMPUTE_EX(filecheck-buffer=CHECK):-slang -compute -vk -shaderobj -output-using-type +//TEST(compute):COMPARE_COMPUTE_EX(filecheck-buffer=CHECK):-slang -compute -cuda -shaderobj -output-using-type //TEST:SIMPLE(filecheck=CHECK1):-target glsl -entry computeMain -stage compute //TEST:SIMPLE(filecheck=CHECK2):-target hlsl -entry computeMain -stage compute //TEST:SIMPLE(filecheck=CHECK3):-target spirv -entry computeMain -stage compute //TEST:SIMPLE(filecheck=CHECK3):-target spirv -emit-spirv-directly -entry computeMain -stage compute +//TEST:SIMPLE(filecheck=CHECK_CUDA):-target cuda -entry computeMain -stage compute // Confirm compilation of `(RW)ByteAddressBuffer` with aligned load / stores to wider data types. @@ -115,3 +117,16 @@ void computeMain(uint3 threadId : SV_DispatchThreadID) buffer0.StoreAligned(8, buffer0.LoadAligned(32)); buffer0.StoreAligned(8, buffer0.LoadAligned(8)); } + +// CHECK_CUDA: ).Load(32U); +// CHECK_CUDA: .Store(32U,{{.*}}); +// CHECK_CUDA: ).Load(8U); +// CHECK_CUDA: ).Load(12U); +// CHECK_CUDA: ).Load(16U); +// CHECK_CUDA: ).Load(20U); +// CHECK_CUDA: .Store(32U,make_float4{{.*}}); +// CHECK_CUDA: ).Load(32U); +// CHECK_CUDA: .Store(8U,{{.*}}); +// CHECK_CUDA: .Store(12U,{{.*}}); +// CHECK_CUDA: .Store(16U,{{.*}}); +// CHECK_CUDA: .Store(20U,{{.*}}); -- cgit v1.2.3