summaryrefslogtreecommitdiffstats
path: root/tools/slang-unit-test/unit-test-find-check-entrypoint.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/slang-unit-test/unit-test-find-check-entrypoint.cpp')
-rw-r--r--tools/slang-unit-test/unit-test-find-check-entrypoint.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/slang-unit-test/unit-test-find-check-entrypoint.cpp b/tools/slang-unit-test/unit-test-find-check-entrypoint.cpp
index 79a797c5a..7a8715b38 100644
--- a/tools/slang-unit-test/unit-test-find-check-entrypoint.cpp
+++ b/tools/slang-unit-test/unit-test-find-check-entrypoint.cpp
@@ -78,6 +78,13 @@ SLANG_UNIT_TEST(findAndCheckEntryPoint)
// tests/compute/simple.slang should cover the same issue.
SLANG_UNIT_TEST(cudaCodeGenBug)
{
+ // We need the CUDA backend for this test
+ if (!SLANG_SUCCEEDED(
+ unitTestContext->slangGlobalSession->checkPassThroughSupport(SLANG_PASS_THROUGH_NVRTC)))
+ {
+ SLANG_IGNORE_TEST;
+ }
+
// Source for a module that contains an undecorated entrypoint.
const char* userSourceBody = R"(
RWStructuredBuffer<float> outputBuffer;