summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-10-14 20:18:08 (GMT)
committerBrad King <brad.king@kitware.com>2019-10-14 20:18:08 (GMT)
commit74035b0ad4eb2eccf6537d6348afeb5d63222b5d (patch)
tree133dc28fad6d3a0127ab3f3b7b572d2d016ddee3
parent6847d81856be2337d24d4db04fc3d23f43122c82 (diff)
parentdb5a8d78761e59d43db2b463a8f8aaa5e7d2be48 (diff)
downloadCMake-74035b0ad4eb2eccf6537d6348afeb5d63222b5d.zip
CMake-74035b0ad4eb2eccf6537d6348afeb5d63222b5d.tar.gz
CMake-74035b0ad4eb2eccf6537d6348afeb5d63222b5d.tar.bz2
Merge branch 'FindOpenMP-clang-HIP-device' into release-3.16
Merge-request: !3911
-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