summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-10-08 12:48:54 (GMT)
committerKitware Robot <kwrobot@kitware.com>2024-10-08 12:49:03 (GMT)
commit51eb7130985aa3fb0fe55cd57502facca94758a2 (patch)
treec60193569ae9e85705ae20b41c2cec21291a3a06 /Tests
parente7cacb057df5bb155ddb24cbca4b848061700891 (diff)
parenta4b60d948dabf91764deeab14b786858d978913d (diff)
downloadCMake-51eb7130985aa3fb0fe55cd57502facca94758a2.zip
CMake-51eb7130985aa3fb0fe55cd57502facca94758a2.tar.gz
CMake-51eb7130985aa3fb0fe55cd57502facca94758a2.tar.bz2
Merge topic 'FindOpenMP-CUDA-Clang'
a4b60d948d FindOpenMP: Add support for CUDA when compiling with Clang Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9886
Diffstat (limited to 'Tests')
-rw-r--r--Tests/FindOpenMP/Test/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/FindOpenMP/Test/main.c b/Tests/FindOpenMP/Test/main.c
index f7abef8..f60fce8 100644
--- a/Tests/FindOpenMP/Test/main.c
+++ b/Tests/FindOpenMP/Test/main.c
@@ -3,7 +3,7 @@ int main(void)
{
#ifdef _OPENMP
omp_get_num_threads();
-#else
+#elif !defined(__CUDA_ARCH__) && !defined(__HIP_DEVICE_COMPILE__)
# error "_OPENMP not defined!"
#endif
return 0;