[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
Tue Jan 3 13:47:21 PST 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rG263962545dae: [OpenMP] Solve potential VERSION script error w/ OMPT symbols (authored by jplehr).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140591/new/
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
@@ -403,3 +403,16 @@
*pos = '\0';
}
+
+#if !OMPT_SUPPORT
+extern "C" {
+typedef struct ompt_start_tool_result_t ompt_start_tool_result_t;
+// Define symbols expected by VERSION script
+ompt_start_tool_result_t *ompt_start_tool(unsigned int omp_version,
+ const char *runtime_version) {
+ return nullptr;
+}
+
+void ompt_libomp_connect(ompt_start_tool_result_t *result) { result = nullptr; }
+}
+#endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140591.486069.patch
Type: text/x-patch
Size: 638 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20230103/54e84e62/attachment.bin>
More information about the Openmp-commits
mailing list