Skip to content

Commit d4f3d24

Browse files
authored
[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.
1 parent a017653 commit d4f3d24

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

openmp/runtime/src/include/omp-tools.h.var

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1408,6 +1408,14 @@ typedef ompt_record_ompt_t *(*ompt_get_record_ompt_t) (
14081408
ompt_buffer_cursor_t current
14091409
);
14101410

1411+
#ifdef _WIN32
1412+
__declspec(dllexport)
1413+
#else
1414+
__attribute__((visibility("default")))
1415+
#endif
1416+
ompt_start_tool_result_t *ompt_start_tool(unsigned int omp_version,
1417+
const char *runtime_version);
1418+
14111419
#define ompt_id_none 0
14121420
#define ompt_data_none {0}
14131421
#define ompt_time_none 0

0 commit comments

Comments
 (0)