35 #ifndef OMPT_SPECIFIC_H
36 #define OMPT_SPECIFIC_H
40 void __ompt_team_assign_id(kmp_team_t *team, ompt_parallel_id_t ompt_pid);
41 void __ompt_thread_assign_wait_id(
void *variable);
43 void __ompt_lw_taskteam_init(ompt_lw_taskteam_t *lwt, kmp_info_t *thr,
44 int gtid,
void *microtask,
45 ompt_parallel_id_t ompt_pid);
47 void __ompt_lw_taskteam_link(ompt_lw_taskteam_t *lwt, kmp_info_t *thr);
49 ompt_lw_taskteam_t * __ompt_lw_taskteam_unlink(kmp_info_t *thr);
51 ompt_parallel_id_t __ompt_parallel_id_new(
int gtid);
52 ompt_task_id_t __ompt_task_id_new(
int gtid);
54 ompt_team_info_t *__ompt_get_teaminfo(
int depth,
int *size);
56 ompt_task_info_t *__ompt_get_taskinfo(
int depth);
59 ompt_get_thread_gtid(
int gtid)
61 return (gtid >= 0) ? __kmp_thread_from_gtid(gtid) : NULL;
67 int gtid = __kmp_gtid_get_specific();
68 return ompt_get_thread_gtid(gtid);
72 void __ompt_thread_begin(ompt_thread_type_t thread_type,
int gtid);
74 void __ompt_thread_end(ompt_thread_type_t thread_type,
int gtid);
77 int __ompt_get_parallel_team_size_internal(
int ancestor_level);
79 ompt_task_id_t __ompt_get_task_id_internal(
int depth);
81 ompt_frame_t *__ompt_get_task_frame_internal(
int depth);