[Openmp-commits] [openmp] [OpenMP] Add ompTest library to OpenMP (PR #147381)
Michael Halkenhäuser via Openmp-commits
openmp-commits at lists.llvm.org
Tue Jul 15 04:40:04 PDT 2025
================
@@ -0,0 +1,116 @@
+##===----------------------------------------------------------------------===##
+#
+# Build OMPT unit testing library: ompTest
+#
+##===----------------------------------------------------------------------===##
+
+cmake_minimum_required(VERSION 3.22)
+project(omptest LANGUAGES CXX)
+
+option(LIBOMPTEST_BUILD_STANDALONE
+ "Build ompTest 'standalone', i.e. w/o GoogleTest." OFF)
+option(LIBOMPTEST_BUILD_UNITTESTS
+ "Build ompTest's unit tests , requires GoogleTest." OFF)
+
+# In absence of corresponding OMPT support: exit early
+if(NOT ${LIBOMPTARGET_OMPT_SUPPORT})
----------------
mhalk wrote:
Good point, also noted by @jprotze.
No, not necessarily.
I *think* with the extended scope of host & device, we might switch to `LIBOMP_OMPT_SUPPORT` as indirectly suggested by Joachim.
WDYT?
Do we need to actively "hide" some device-related functionalities when `LIBOMP_OMPT_SUPPORT=ON` and `LIBOMPTARGET_OMPT_SUPPORT=OFF`?
https://github.com/llvm/llvm-project/pull/147381
More information about the Openmp-commits
mailing list