diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2020-02-12 09:15:47 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-12 09:15:47 -0500 |
| commit | fe9d27af9de047ea75db1334c961bb025fb732f6 (patch) | |
| tree | 3d7a3e1e693f0fe66930db87a5833eaea993620a /tests/compute/groupshared.slang | |
| parent | 9b3e768bceae562deeb330067f3ef5febc2e5244 (diff) | |
CUDA barrier/atomic support (#1218)
* * Improved fastRemoveAt
* Fixed off by one bug
* Fixed const safeness with List<>
* Made List begin and end const safe.
* Revert to previous RefPtr usage.
* Fix bug with casting.
* Tabs -> spaces.
Small fixes/improvements to List.
* Improve comment on List.
* Group shared/atomic test works on CUDA.
* * Enabled CUDA tests for atomics tests
* Enabled DX12 test for atomics-buffer.slang
Not clear just yet how to implement that for CUDA - it will work with StructuredBuffer.
* hasContent -> isNonEmpty
* Remove unneeded comment.
Diffstat (limited to 'tests/compute/groupshared.slang')
| -rw-r--r-- | tests/compute/groupshared.slang | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/compute/groupshared.slang b/tests/compute/groupshared.slang index 8712ee878..2ebf325ab 100644 --- a/tests/compute/groupshared.slang +++ b/tests/compute/groupshared.slang @@ -3,8 +3,10 @@ //TEST(compute):COMPARE_COMPUTE_EX:-slang -compute //TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -dx12 //TEST(compute, vulkan):COMPARE_COMPUTE_EX:-vk -compute +//TEST(compute):COMPARE_COMPUTE_EX:-cuda -compute -//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out +//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out, name=gBuffer +RWStructuredBuffer<int> gBuffer; #define THREAD_COUNT 4 @@ -26,8 +28,6 @@ int test(int val) return val; } -RWStructuredBuffer<int> gBuffer; - [numthreads(THREAD_COUNT, 1, 1)] void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID) { |
