diff options
author | Brad King <brad.king@kitware.com> | 2024-10-08 12:48:54 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2024-10-08 12:49:03 (GMT) |
commit | 51eb7130985aa3fb0fe55cd57502facca94758a2 (patch) | |
tree | c60193569ae9e85705ae20b41c2cec21291a3a06 /Tests | |
parent | e7cacb057df5bb155ddb24cbca4b848061700891 (diff) | |
parent | a4b60d948dabf91764deeab14b786858d978913d (diff) | |
download | CMake-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.c | 2 |
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; |