blob: 62f443aed80e0135857df193a1f1f6d156473fc3 [file] [log] [blame]
//===- OmptTesterGlobals.h - Global function declarations -------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
///
/// \file
/// Contains global function declarations, esp. for OMPT symbols.
///
//===----------------------------------------------------------------------===//
#ifndef OPENMP_TOOLS_OMPTEST_INCLUDE_OMPTTESTERGLOBALS_H
#define OPENMP_TOOLS_OMPTEST_INCLUDE_OMPTTESTERGLOBALS_H
#include <omp-tools.h>
#ifdef __cplusplus
extern "C" {
#endif
ompt_start_tool_result_t *ompt_start_tool(unsigned int omp_version,
const char *runtime_version);
int start_trace(ompt_device_t *Device);
int flush_trace(ompt_device_t *Device);
// Function which calls flush_trace(ompt_device_t *) on all traced devices.
int flush_traced_devices();
int stop_trace(ompt_device_t *Device);
// Function which calls stop_trace(ompt_device_t *) on all traced devices.
int stop_trace_devices();
void libomptest_global_eventreporter_set_active(bool State);
#ifdef __cplusplus
}
#endif
#endif