Skip to content

Commit

Permalink
Disable CUDA tests for Cling
Browse files Browse the repository at this point in the history
  • Loading branch information
mcbarton committed Nov 29, 2024
1 parent bb10c03 commit 05f2544
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions unittests/CppInterOp/CUDATest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ using namespace TestUtils;

static bool HasCudaSDK() {
auto supportsCudaSDK = []() {
#if CLANG_VERSION_MAJOR < 16
#ifdef USE_CLING
// FIXME: Enable this for cling.
return false;
#elif CLANG_VERSION_MAJOR < 16
// FIXME: Enable this for cling.
return false;
#endif // CLANG_VERSION_MAJOR < 16
Expand All @@ -23,7 +26,10 @@ static bool HasCudaSDK() {

static bool HasCudaRuntime() {
auto supportsCuda = []() {
#if CLANG_VERSION_MAJOR < 16
#ifdef USE_CLING
// FIXME: Enable this for cling.
return false;
#elif CLANG_VERSION_MAJOR < 16
// FIXME: Enable this for cling.
return false;
#endif //CLANG_VERSION_MAJOR < 16
Expand All @@ -43,6 +49,8 @@ static bool HasCudaRuntime() {

#if CLANG_VERSION_MAJOR < 16
TEST(DISABLED_CUDATest, Sanity) {
#elif USE_CLING
TEST(DISABLED_CUDATest, Sanity) {
#else
TEST(CUDATest, Sanity) {
#endif // CLANG_VERSION_MAJOR < 16
Expand Down

0 comments on commit 05f2544

Please sign in to comment.