[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
Fri Dec 23 14:24:24 PST 2022


jplehr updated this revision to Diff 485159.
jplehr added a comment.

I was finally able to reproduce the reported issue and fixed it.
Addressed review comments.


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.485159.patch
Type: text/x-patch
Size: 638 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20221223/f652d385/attachment.bin>


More information about the Openmp-commits mailing list