Skip to content

Commit 2a0be64

Browse files
authored
Disable CUDA tests for Cling
1 parent bb10c03 commit 2a0be64

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

unittests/CppInterOp/CUDATest.cpp

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ using namespace TestUtils;
99

1010
static bool HasCudaSDK() {
1111
auto supportsCudaSDK = []() {
12-
#if CLANG_VERSION_MAJOR < 16
12+
#ifdef USE_CLING
13+
// FIXME: Enable this for cling.
14+
return false;
15+
#elif CLANG_VERSION_MAJOR < 16
1316
// FIXME: Enable this for cling.
1417
return false;
1518
#endif // CLANG_VERSION_MAJOR < 16
@@ -23,7 +26,10 @@ static bool HasCudaSDK() {
2326

2427
static bool HasCudaRuntime() {
2528
auto supportsCuda = []() {
26-
#if CLANG_VERSION_MAJOR < 16
29+
#ifdef USE_CLING
30+
// FIXME: Enable this for cling.
31+
return false;
32+
#elif CLANG_VERSION_MAJOR < 16
2733
// FIXME: Enable this for cling.
2834
return false;
2935
#endif //CLANG_VERSION_MAJOR < 16
@@ -43,6 +49,8 @@ static bool HasCudaRuntime() {
4349

4450
#if CLANG_VERSION_MAJOR < 16
4551
TEST(DISABLED_CUDATest, Sanity) {
52+
#elif USE_CLING
53+
TEST(DISABLED_CUDATest, Sanity) {
4654
#else
4755
TEST(CUDATest, Sanity) {
4856
#endif // CLANG_VERSION_MAJOR < 16

0 commit comments

Comments
 (0)