#ifndef OMPT_SPECIFIC_H
#define OMPT_SPECIFIC_H
#include "kmp.h"
#if OMPT_SUPPORT
void __ompt_force_initialization();
void __ompt_team_assign_id(kmp_team_t *team, ompt_data_t ompt_pid);
void __ompt_thread_assign_wait_id(void *variable);
void __ompt_lw_taskteam_init(ompt_lw_taskteam_t *lwt, kmp_info_t *thr, int gtid,
ompt_data_t *ompt_pid, void *codeptr);
void __ompt_lw_taskteam_link(ompt_lw_taskteam_t *lwt, kmp_info_t *thr,
int on_heap, bool always = false);
void __ompt_lw_taskteam_unlink(kmp_info_t *thr);
ompt_team_info_t *__ompt_get_teaminfo(int depth, int *size);
ompt_data_t *__ompt_get_task_data();
ompt_data_t *__ompt_get_target_task_data();
ompt_task_info_t *__ompt_get_task_info_object(int depth);
int __ompt_get_parallel_info_internal(int ancestor_level,
ompt_data_t **parallel_data,
int *team_size);
int __ompt_get_task_info_internal(int ancestor_level, int *type,
ompt_data_t **task_data,
ompt_frame_t **task_frame,
ompt_data_t **parallel_data, int *thread_num);
ompt_data_t *__ompt_get_thread_data_internal();
ompt_sync_region_t __ompt_get_barrier_kind(enum barrier_type, kmp_info_t *);
#define OMPT_CUR_TASK_INFO(thr) …
#define OMPT_CUR_TASK_DATA(thr) …
#define OMPT_CUR_TEAM_INFO(thr) …
#define OMPT_CUR_TEAM_DATA(thr) …
#define OMPT_HAVE_WEAK_ATTRIBUTE …
#define OMPT_HAVE_PSAPI …
#define OMPT_STR_MATCH(haystack, needle) …
inline void *__ompt_load_return_address(int gtid) { … }
#define OMPT_STORE_RETURN_ADDRESS(gtid) …
#define OMPT_LOAD_RETURN_ADDRESS(gtid) …
#define OMPT_LOAD_OR_GET_RETURN_ADDRESS(gtid) …
#define OMPT_GET_DISPATCH_CHUNK(chunk, lb, ub, incr) …
inline kmp_info_t *ompt_get_thread_gtid(int gtid) { … }
inline kmp_info_t *ompt_get_thread() { … }
inline void ompt_set_thread_state(kmp_info_t *thread, ompt_state_t state) { … }
inline const char *ompt_get_runtime_version() { … }
inline ompt_work_t ompt_get_work_schedule(enum sched_type schedule) { … }
class OmptReturnAddressGuard { … };
#endif
#if OMPT_SUPPORT && OMPT_OPTIONAL
#define OMPT_REDUCTION_DECL(this_thr, gtid) …
#define OMPT_REDUCTION_BEGIN …
#define OMPT_REDUCTION_END …
#else
#define OMPT_REDUCTION_DECL …
#define OMPT_REDUCTION_BEGIN
#define OMPT_REDUCTION_END
#endif
#endif