summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-10-15 15:13:02 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-10-15 15:13:10 (GMT)
commite14518ec4507b008a4a1b842bb14a8587aacf055 (patch)
tree0457a64185e9033005203592e101646252f02d52 /Modules
parentdaf6a6ba68a6fa1c5d1956f151104d903f3447cc (diff)
parentdb5a8d78761e59d43db2b463a8f8aaa5e7d2be48 (diff)
downloadCMake-e14518ec4507b008a4a1b842bb14a8587aacf055.zip
CMake-e14518ec4507b008a4a1b842bb14a8587aacf055.tar.gz
CMake-e14518ec4507b008a4a1b842bb14a8587aacf055.tar.bz2
Merge topic 'FindOpenMP-clang-HIP-device'
db5a8d7876 FindOpenMP: Add support for HIP clang device pass Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3911
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindOpenMP.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/FindOpenMP.cmake b/Modules/FindOpenMP.cmake
index def23bb..ab9d73a 100644
--- a/Modules/FindOpenMP.cmake
+++ b/Modules/FindOpenMP.cmake
@@ -128,6 +128,8 @@ int main(void) {
#ifdef _OPENMP
omp_get_max_threads();
return 0;
+#elif defined(__HIP_DEVICE_COMPILE__)
+ return 0;
#else
breaks_on_purpose
#endif