[Openmp-commits] [PATCH] D140591: [OpenMP] Solve potential VERSION script error w/ OMPT symbols
Jan-Patrick Lehr via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Thu Dec 22 15:37:15 PST 2022
jplehr created this revision.
jplehr added a reviewer: jhuber6.
Herald added subscribers: guansong, yaxunl.
Herald added a project: All.
jplehr requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: openmp-commits, sstefan1.
Herald added a project: OpenMP.
The patch adds the symbols if OMPT_SUPPORT is not defined.
Github issue: https://github.com/llvm/llvm-project/issues/59660
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D140591
Files:
openmp/runtime/src/kmp_utility.cpp
Index: openmp/runtime/src/kmp_utility.cpp
===================================================================
--- openmp/runtime/src/kmp_utility.cpp
+++ openmp/runtime/src/kmp_utility.cpp
@@ -16,6 +16,13 @@
#include "kmp_wrapper_getpid.h"
#include <float.h>
+#ifndef OMPT_SUPPORT
+// Define symbols required by VERSION script
+ompt_start_tool_result_t *ompt_start_tool(unsigned int omp_version,
+ const char *runtime_version) = 0;
+void ompt_libomp_connect(ompt_start_tool_result_t *result) = 0;
+#endif
+
static const char *unknown = "unknown";
#if KMP_ARCH_X86 || KMP_ARCH_X86_64
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140591.484978.patch
Type: text/x-patch
Size: 631 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20221222/4acd4a98/attachment.bin>
More information about the Openmp-commits
mailing list