[Openmp-commits] [PATCH] D41508: [OMPT] Build runtime with OMPT support by default
Joachim Protze via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Thu Dec 21 11:33:26 PST 2017
protze.joachim created this revision.
protze.joachim added reviewers: Hahnfeld, jcownie, jlpeyton, pawelo.
Herald added a subscriber: mgorny.
As discussed on openmp-dev mailing list.
This patch enables OMPT by default if version 50 or later is built and the config says, that OMPT will be supported.
https://reviews.llvm.org/D41508
Files:
runtime/CMakeLists.txt
Index: runtime/CMakeLists.txt
===================================================================
--- runtime/CMakeLists.txt
+++ runtime/CMakeLists.txt
@@ -299,12 +299,18 @@
set (LIBOMP_USE_VERSION_SYMBOLS FALSE)
endif()
-# OMPT-support
+# OMPT-support defaults to ON for OpenMP 5.0+ and if the requirements in
+# cmake/config-ix.cmake are fulfilled.
+if((${LIBOMP_OMP_VERSION} GREATER 49) AND (LIBOMP_HAVE_OMPT_SUPPORT))
+ set(LIBOMP_OMPT_SUPPORT TRUE CACHE BOOL
+ "OMPT-support?")
+else()
+ set(LIBOMP_OMPT_SUPPORT FALSE CACHE BOOL
+ "OMPT-support?")
+endif()
+
set(LIBOMP_OMPT_DEBUG FALSE CACHE BOOL
"Trace OMPT initialization?")
-#after testing: turn on ompt support by default for OpenMP 5.0 and higher
-set(LIBOMP_OMPT_SUPPORT FALSE CACHE BOOL
- "OMPT-support?")
set(LIBOMP_OMPT_OPTIONAL TRUE CACHE BOOL
"OMPT-optional?")
if(LIBOMP_OMPT_SUPPORT AND (NOT LIBOMP_HAVE_OMPT_SUPPORT))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41508.127921.patch
Type: text/x-patch
Size: 911 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20171221/4b321fa5/attachment.bin>
More information about the Openmp-commits
mailing list