Debian Codegraph @

openmp/tools/omptest/include/OmptTesterGlobals.h

raw
1 //===- OmptTesterGlobals.h - Global function declarations -------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 ///
9 /// \file
10 /// Contains global function declarations, esp. for OMPT symbols.
11 ///
12 //===----------------------------------------------------------------------===//
13
14 #ifndef OPENMP_TOOLS_OMPTEST_INCLUDE_OMPTTESTERGLOBALS_H
15 #define OPENMP_TOOLS_OMPTEST_INCLUDE_OMPTTESTERGLOBALS_H
16
17 #include <omp-tools.h>
18
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 ompt_start_tool_result_t *ompt_start_tool(unsigned int omp_version,
23 const char *runtime_version);
24 int start_trace(ompt_device_t *Device);
25 int flush_trace(ompt_device_t *Device);
26 // Function which calls flush_trace(ompt_device_t *) on all traced devices.
27 int flush_traced_devices();
28 int stop_trace(ompt_device_t *Device);
29 // Function which calls stop_trace(ompt_device_t *) on all traced devices.
30 int stop_trace_devices();
31 void libomptest_global_eventreporter_set_active(bool State);
32 #ifdef __cplusplus
33 }
34 #endif
35
36 #endif