llvm/openmp/runtime/src/ompt-event-specific.h

/******************************************************************************
 * File: ompt-event-specific.h
 *
 * Description:
 *
 *   specify which of the OMPT events are implemented by this runtime system
 *   and the level of their implementation by a runtime system.
 *****************************************************************************/

//===----------------------------------------------------------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//

#ifndef __OMPT_EVENT_SPECIFIC_H__
#define __OMPT_EVENT_SPECIFIC_H__

#define _ompt_tokenpaste_helper(x, y)
#define _ompt_tokenpaste(x, y)
#define ompt_event_implementation_status(e)

/*----------------------------------------------------------------------------
 | Specify whether an event may occur or not, and whether event callbacks
 | never, sometimes, or always occur.
 |
 | The values for these constants are defined in section 6.1.2 of
 | the OMPT TR. They are exposed to tools through ompt_set_callback.
 +--------------------------------------------------------------------------*/

#define ompt_event_UNIMPLEMENTED
#define ompt_event_MAY_CONVENIENT
#define ompt_event_MAY_ALWAYS

#if OMPT_OPTIONAL
#define ompt_event_MAY_ALWAYS_OPTIONAL
#else
#define ompt_event_MAY_ALWAYS_OPTIONAL
#endif

/*----------------------------------------------------------------------------
 | Mandatory Events
 +--------------------------------------------------------------------------*/

#define ompt_callback_thread_begin_implemented
#define ompt_callback_thread_end_implemented

#define ompt_callback_parallel_begin_implemented
#define ompt_callback_parallel_end_implemented

#define ompt_callback_task_create_implemented
#define ompt_callback_task_schedule_implemented

#define ompt_callback_implicit_task_implemented

#define ompt_callback_target_implemented
#define ompt_callback_target_emi_implemented
#define ompt_callback_target_data_op_implemented
#define ompt_callback_target_data_op_emi_implemented
#define ompt_callback_target_submit_implemented
#define ompt_callback_target_submit_emi_implemented
#define ompt_callback_control_tool_implemented

#define ompt_callback_device_initialize_implemented
#define ompt_callback_device_finalize_implemented

#define ompt_callback_device_load_implemented
#define ompt_callback_device_unload_implemented

/*----------------------------------------------------------------------------
 | Optional Events
 +--------------------------------------------------------------------------*/

#define ompt_callback_sync_region_wait_implemented

#define ompt_callback_mutex_released_implemented

#define ompt_callback_dependences_implemented
#define ompt_callback_task_dependence_implemented

#define ompt_callback_work_implemented

#define ompt_callback_masked_implemented

#define ompt_callback_target_map_implemented
#define ompt_callback_target_map_emi_implemented

#define ompt_callback_sync_region_implemented

#define ompt_callback_lock_init_implemented
#define ompt_callback_lock_destroy_implemented

#define ompt_callback_mutex_acquire_implemented
#define ompt_callback_mutex_acquired_implemented
#define ompt_callback_nest_lock_implemented

#define ompt_callback_flush_implemented

#define ompt_callback_cancel_implemented

#define ompt_callback_reduction_implemented

#define ompt_callback_dispatch_implemented

#define ompt_callback_error_implemented

#endif