[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 05:48:06 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:
Thinking about this I'd say:
ompTest would try to register the callbacks, which fails, emits a print and continues:
* PR: [openmp/tools/omptest/src/OmptTester.cpp](https://github.com/llvm/llvm-project/pull/147381/files/f024da45acd71e4dfe65d3d9cc6b86cf9cb7cc69#diff-5444ac7a0af0a21f1de08291d12c0050b446ae7648d6fea7a46128e324124353R32-R38)
* Originally: [openmp/runtime/test/ompt/callback.h](https://github.com/llvm/llvm-project/blob/main/openmp/runtime/test/ompt/callback.h#L352-L357)
But now that I re-read, you want the written assertions to be ignored in absence of the corresponding callback, correct?
https://github.com/llvm/llvm-project/pull/147381
More information about the Openmp-commits
mailing list