summaryrefslogtreecommitdiffstats
path: root/tests/cross-compile/cpp-execute-simple.slang
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2019-09-18 11:40:59 -0400
committerGitHub <noreply@github.com>2019-09-18 11:40:59 -0400
commit31c7abcc27a33d63ac8d335387a0ce7b3ad74954 (patch)
tree3b4254df7bdbf8b497aa8a3e5f08f8927c1afbc6 /tests/cross-compile/cpp-execute-simple.slang
parent3af404da7f7f125464b78159940cb3fc06e69cc5 (diff)
Improvements to testing and ABI for CPU (#1057)
* WIP: Improving CPU performance/ABI * Optionally output code on CPU for groupThreadID and groupID. * Added ability to set compute dispatch size on command line for render-test. Dispatch compute tests taking into account dispatch size. Added test for semantics are working. * Test using GroupRange. * Fix problem with adding \n for externa diagnostic - to do it if there isn't a \n at the end. Change the ouput order (put result before) so last value is diagnostic string. * Made GroupRange the default exposed CPU ABI entry point style. Removed CPU_EXECUTE test style -as tested via the now cross platform render-test * Split out execution from setup for execution to improve perf. * For better code coverage/testing test all styles of CPU compute entry point. * Improve documentation for ABI changes for CPU code. Add 'expecting' to error message from review. * Fix small typos.
Diffstat (limited to 'tests/cross-compile/cpp-execute-simple.slang')
-rw-r--r--tests/cross-compile/cpp-execute-simple.slang14
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/cross-compile/cpp-execute-simple.slang b/tests/cross-compile/cpp-execute-simple.slang
deleted file mode 100644
index 72c77b653..000000000
--- a/tests/cross-compile/cpp-execute-simple.slang
+++ /dev/null
@@ -1,14 +0,0 @@
-//TEST:CPU_EXECUTE: -profile cs_5_0 -entry computeMain -target sharedlib
-
-//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):dxbinding(0),glbinding(0),out
-RWStructuredBuffer<int> outputBuffer;
-
-
-[numthreads(4, 1, 1)]
-void computeMain(
- uint3 dispatchThreadID : SV_DispatchThreadID)
-{
- uint tid = dispatchThreadID.x;
-
- outputBuffer[tid] = int(tid * tid);
-} \ No newline at end of file