[Openmp-commits] [openmp] [OpenMP] Add ompt_start_tool declaration in omp-tools.h (PR #97099)
Hansang Bae via Openmp-commits
openmp-commits at lists.llvm.org
Fri Jun 28 12:24:17 PDT 2024
https://github.com/hansangbae created https://github.com/llvm/llvm-project/pull/97099
The function ompt_start_tool is a globally-visible C function according to the specification.
>From 4d6a0cfbe7fbdc9d70fcc35ee9d91f4ad1e428bb Mon Sep 17 00:00:00 2001
From: Hansang Bae <hansang.bae at intel.com>
Date: Tue, 16 Apr 2024 11:12:26 -0500
Subject: [PATCH] [OpenMP] Add ompt_start_tool declaration in omp-tools.h
The function ompt_start_tool is a globally-visible C function according
to the specification.
---
openmp/runtime/src/include/omp-tools.h.var | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/openmp/runtime/src/include/omp-tools.h.var b/openmp/runtime/src/include/omp-tools.h.var
index 1d1a0f7771e95..9c568397164d0 100644
--- a/openmp/runtime/src/include/omp-tools.h.var
+++ b/openmp/runtime/src/include/omp-tools.h.var
@@ -1408,6 +1408,12 @@ typedef ompt_record_ompt_t *(*ompt_get_record_ompt_t) (
ompt_buffer_cursor_t current
);
+#ifdef _WIN32
+__declspec(dllexport)
+#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