#include "kmp.h"
#include "ompt-internal.h"
#include "ompt-specific.h"
Go to the source code of this file.
#define CREATE_ID | ( | ti, | |||
tid | ) | ( ((ti) << OMPT_THREAD_ID_BITS) | (tid) ) |
Definition at line 152 of file ompt-specific.c.
Referenced by __ompt_parallel_id_new().
#define NEXT_ID | ( | ti, | |||
tid | ) | ((((ti)->th.ompt_thread_info.next_parallel_id++) << OMPT_THREAD_ID_BITS) | (tid)) |
Definition at line 153 of file ompt-specific.c.
#define OMPT_THREAD_ID_BITS 20 |
Definition at line 151 of file ompt-specific.c.
void* __ompt_get_idle_frame_internal | ( | void | ) |
Definition at line 70 of file ompt-specific.c.
References ompt_get_thread().
Referenced by ompt_get_idle_frame().
ompt_lw_taskteam_t* __ompt_get_lw_taskteam | ( | int * | ancestor_level | ) |
Definition at line 78 of file ompt-specific.c.
References ompt_get_thread(), and ompt_lw_taskteam_s::parent.
Referenced by __ompt_get_parallel_function_internal(), __ompt_get_parallel_id_internal(), and __ompt_get_task_id_internal().
void* __ompt_get_parallel_function_internal | ( | int | ancestor_level | ) |
Definition at line 95 of file ompt-specific.c.
References __ompt_get_lw_taskteam(), ompt_team_info_t::microtask, ompt_team(), ompt_lw_taskteam_s::ompt_team_info, and kmp_team::t.
Referenced by ompt_get_parallel_function().
ompt_parallel_id_t __ompt_get_parallel_id_internal | ( | int | ancestor_level | ) |
Definition at line 108 of file ompt-specific.c.
References __ompt_get_lw_taskteam(), ompt_parallel_id_none, ompt_team(), ompt_lw_taskteam_s::ompt_team_info, ompt_team_info_t::parallel_id, and kmp_team::t.
Referenced by ompt_get_parallel_id().
int __ompt_get_runtime_version_internal | ( | char * | buffer, | |
int | length | |||
) |
Definition at line 221 of file ompt-specific.c.
References __kmp_version_lib_ver.
Referenced by ompt_get_runtime_version().
ompt_state_t __ompt_get_state_internal | ( | ompt_wait_id_t * | ompt_wait_id | ) |
Definition at line 56 of file ompt-specific.c.
References ompt_get_thread().
Referenced by ompt_get_state().
ompt_frame_t* __ompt_get_task_frame_internal | ( | int | ancestor_level | ) |
Definition at line 143 of file ompt-specific.c.
References ompt_task().
Referenced by ompt_get_task_frame().
void* __ompt_get_task_function_internal | ( | int | ancestor_level | ) |
Definition at line 134 of file ompt-specific.c.
References ompt_task().
Referenced by ompt_get_task_function().
ompt_task_id_t __ompt_get_task_id_internal | ( | int | ancestor_level | ) |
Definition at line 121 of file ompt-specific.c.
References __ompt_get_lw_taskteam(), ompt_task(), ompt_task_id_none, ompt_lw_taskteam_s::ompt_task_info, and ompt_task_info_t::task_id.
Referenced by ompt_get_task_id().
void __ompt_lw_taskteam_init | ( | ompt_lw_taskteam_t * | lwt, | |
kmp_info_t * | thr, | |||
int | gtid, | |||
microtask_t | microtask, | |||
ompt_parallel_id_t | ompt_pid | |||
) |
Definition at line 194 of file ompt-specific.c.
References ompt_frame_s::exit_runtime_frame, ompt_task_info_t::frame, ompt_team_info_t::microtask, ompt_lw_taskteam_s::ompt_task_info, ompt_lw_taskteam_s::ompt_team_info, ompt_team_info_t::parallel_id, ompt_lw_taskteam_s::parent, ompt_frame_s::reenter_runtime_frame, and ompt_task_info_t::task_id.
Referenced by __kmp_fork_call().
void __ompt_lw_taskteam_link | ( | ompt_lw_taskteam_t * | lwt, | |
kmp_info_t * | thr | |||
) |
Definition at line 207 of file ompt-specific.c.
References ompt_lw_taskteam_s::parent.
Referenced by __kmp_fork_call().
void __ompt_lw_taskteam_unlink | ( | ompt_lw_taskteam_t * | lwt, | |
kmp_info_t * | thr | |||
) |
Definition at line 215 of file ompt-specific.c.
References ompt_lw_taskteam_s::parent.
Referenced by __kmp_fork_call().
ompt_parallel_id_t __ompt_parallel_id_new | ( | kmp_info_t * | ti, | |
int | gtid | |||
) |
Definition at line 155 of file ompt-specific.c.
References CREATE_ID.
Referenced by __kmp_allocate_thread(), __kmp_fork_call(), __kmp_initialize_root(), __kmp_register_root(), and __kmpc_serialized_parallel().
void __ompt_team_assign_id | ( | kmp_team_t * | team, | |
ompt_parallel_id_t | ompt_pid | |||
) |
Definition at line 179 of file ompt-specific.c.
References kmp_team::t.
Referenced by __kmp_allocate_team().
void __ompt_thread_assign_wait_id | ( | void * | variable | ) |
Definition at line 185 of file ompt-specific.c.
References __kmp_gtid_get_specific(), and ompt_get_thread_gtid().
Referenced by GOMP_atomic_start().
kmp_taskdata_t* ompt_task | ( | int | ancestor_level | ) |
Definition at line 43 of file ompt-specific.c.
References i, and ompt_get_thread().
Referenced by __ompt_get_task_frame_internal(), __ompt_get_task_function_internal(), and __ompt_get_task_id_internal().
kmp_team_t* ompt_team | ( | int | ancestor_level | ) |
Definition at line 26 of file ompt-specific.c.
References i, ompt_get_thread(), and kmp_team::t.
Referenced by __ompt_get_parallel_function_internal(), and __ompt_get_parallel_id_internal().