1 #ifndef __OMPT_INTERNAL_H__ 2 #define __OMPT_INTERNAL_H__ 5 #include "ompt-event-specific.h" 9 #define _OMP_EXTERN extern "C" 11 #define OMPT_INVOKER(x) \ 12 ((x == fork_context_gnu) ? ompt_invoker_program : ompt_invoker_runtime) 15 #define ompt_callback(e) e ## _callback 18 typedef struct ompt_callbacks_s {
19 #define ompt_event_macro(event, callback, eventid) callback ompt_callback(event); 21 FOREACH_OMPT_EVENT(ompt_event_macro)
23 #undef ompt_event_macro 31 ompt_task_id_t task_id;
36 ompt_parallel_id_t parallel_id;
41 typedef struct ompt_lw_taskteam_s {
42 ompt_team_info_t ompt_team_info;
43 ompt_task_info_t ompt_task_info;
44 struct ompt_lw_taskteam_s *parent;
48 typedef struct ompt_parallel_info_s {
49 ompt_task_id_t parent_task_id;
50 ompt_parallel_id_t parallel_id;
51 ompt_frame_t *parent_task_frame;
52 void *parallel_function;
53 } ompt_parallel_info_t;
58 ompt_wait_id_t wait_id;
63 extern ompt_callbacks_t ompt_callbacks;
69 void ompt_pre_init(
void);
70 void ompt_post_init(
void);
73 extern int ompt_enabled;