brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 62f443a Raw
37 lines · c
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-exception6//7//===----------------------------------------------------------------------===//8///9/// \file10/// Contains global function declarations, esp. for OMPT symbols.11///12//===----------------------------------------------------------------------===//13 14#ifndef OPENMP_TOOLS_OMPTEST_INCLUDE_OMPTTESTERGLOBALS_H15#define OPENMP_TOOLS_OMPTEST_INCLUDE_OMPTTESTERGLOBALS_H16 17#include <omp-tools.h>18 19#ifdef __cplusplus20extern "C" {21#endif22ompt_start_tool_result_t *ompt_start_tool(unsigned int omp_version,23                                          const char *runtime_version);24int start_trace(ompt_device_t *Device);25int flush_trace(ompt_device_t *Device);26// Function which calls flush_trace(ompt_device_t *) on all traced devices.27int flush_traced_devices();28int stop_trace(ompt_device_t *Device);29// Function which calls stop_trace(ompt_device_t *) on all traced devices.30int stop_trace_devices();31void libomptest_global_eventreporter_set_active(bool State);32#ifdef __cplusplus33}34#endif35 36#endif37