[Openmp-commits] [openmp] d4f3d24 - [OpenMP] Add ompt_start_tool declaration in omp-tools.h (#97099)
via Openmp-commits
openmp-commits at lists.llvm.org
Wed Jul 3 10:59:37 PDT 2024
Author: Hansang Bae
Date: 2024-07-03T12:59:34-05:00
New Revision: d4f3d24e7f016440083a785ded818b8fb410b7d8
URL: https://github.com/llvm/llvm-project/commit/d4f3d24e7f016440083a785ded818b8fb410b7d8
DIFF: https://github.com/llvm/llvm-project/commit/d4f3d24e7f016440083a785ded818b8fb410b7d8.diff
LOG: [OpenMP] Add ompt_start_tool declaration in omp-tools.h (#97099)
The function ompt_start_tool is a globally-visible C function according
to the specification.
Added:
Modified:
openmp/runtime/src/include/omp-tools.h.var
Removed:
################################################################################
diff --git a/openmp/runtime/src/include/omp-tools.h.var b/openmp/runtime/src/include/omp-tools.h.var
index 1d1a0f7771e95..8ee179dfe84d7 100644
--- a/openmp/runtime/src/include/omp-tools.h.var
+++ b/openmp/runtime/src/include/omp-tools.h.var
@@ -1408,6 +1408,14 @@ typedef ompt_record_ompt_t *(*ompt_get_record_ompt_t) (
ompt_buffer_cursor_t current
);
+#ifdef _WIN32
+__declspec(dllexport)
+#else
+__attribute__((visibility("default")))
+#endif
+ompt_start_tool_result_t *ompt_start_tool(unsigned int omp_version,
+ const char *runtime_version);
+
#define ompt_id_none 0
#define ompt_data_none {0}
#define ompt_time_none 0
More information about the Openmp-commits
mailing list