diff options
author | Brad King <brad.king@kitware.com> | 2024-10-07 15:58:57 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-10-07 18:19:08 (GMT) |
commit | a4b60d948dabf91764deeab14b786858d978913d (patch) | |
tree | 581575ab48bb95ab9288b351c64440628f7e93e7 /Tests | |
parent | cfa888a6e2e488cf7389c1b54cd3437bf75fecae (diff) | |
download | CMake-a4b60d948dabf91764deeab14b786858d978913d.zip CMake-a4b60d948dabf91764deeab14b786858d978913d.tar.gz CMake-a4b60d948dabf91764deeab14b786858d978913d.tar.bz2 |
FindOpenMP: Add support for CUDA when compiling with Clang
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; |