LLVM OpenMP 22.0.0git
ompt-specific.cpp File Reference
#include "kmp.h"
#include "ompt-specific.h"

Go to the source code of this file.

Macros

#define THREAD_LOCAL   __thread
#define OMPT_WEAK_ATTRIBUTE   KMP_WEAK_ATTRIBUTE_INTERNAL
#define LWT_FROM_TEAM(team)
#define OMPT_THREAD_ID_BITS   16

Functions

ompt_team_info_t__ompt_get_teaminfo (int depth, int *size)
ompt_task_info_t__ompt_get_task_info_object (int depth)
ompt_task_info_t__ompt_get_scheduling_taskinfo (int depth)
void __ompt_force_initialization ()
ompt_data_t * __ompt_get_thread_data_internal ()
void __ompt_thread_assign_wait_id (void *variable)
int __ompt_get_state_internal (ompt_wait_id_t *omp_wait_id)
int __ompt_get_parallel_info_internal (int ancestor_level, ompt_data_t **parallel_data, int *team_size)
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)
void __ompt_lw_taskteam_unlink (kmp_info_t *thr)
ompt_data_t * __ompt_get_task_data ()
ompt_data_t * __ompt_get_target_task_data ()
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)
int __ompt_get_task_memory_internal (void **addr, size_t *size, int blocknum)
void __ompt_team_assign_id (kmp_team_t *team, ompt_data_t ompt_pid)
static uint64_t __ompt_get_unique_id_internal ()
ompt_sync_region_t __ompt_get_barrier_kind (enum barrier_type bt, kmp_info_t *thr)

Macro Definition Documentation

◆ LWT_FROM_TEAM

#define LWT_FROM_TEAM ( team)
Value:
(team)->t.ompt_serialized_team_info

Definition at line 36 of file ompt-specific.cpp.

Referenced by __ompt_get_scheduling_taskinfo(), __ompt_get_task_info_internal(), __ompt_get_task_info_object(), and __ompt_get_teaminfo().

◆ OMPT_THREAD_ID_BITS

#define OMPT_THREAD_ID_BITS   16

Definition at line 38 of file ompt-specific.cpp.

Referenced by __ompt_get_unique_id_internal().

◆ OMPT_WEAK_ATTRIBUTE

#define OMPT_WEAK_ATTRIBUTE   KMP_WEAK_ATTRIBUTE_INTERNAL

Definition at line 30 of file ompt-specific.cpp.

◆ THREAD_LOCAL

#define THREAD_LOCAL   __thread

Definition at line 27 of file ompt-specific.cpp.

Referenced by __ompt_get_unique_id_internal().

Function Documentation

◆ __ompt_force_initialization()

void __ompt_force_initialization ( )

Definition at line 195 of file ompt-specific.cpp.

References __kmp_serial_initialize().

Referenced by ompt_libomp_connect().

◆ __ompt_get_barrier_kind()

ompt_sync_region_t __ompt_get_barrier_kind ( enum barrier_type bt,
kmp_info_t * thr )

◆ __ompt_get_parallel_info_internal()

int __ompt_get_parallel_info_internal ( int ancestor_level,
ompt_data_t ** parallel_data,
int * team_size )

◆ __ompt_get_scheduling_taskinfo()

◆ __ompt_get_state_internal()

int __ompt_get_state_internal ( ompt_wait_id_t * omp_wait_id)

Definition at line 222 of file ompt-specific.cpp.

Referenced by ompt_get_state().

◆ __ompt_get_target_task_data()

ompt_data_t * __ompt_get_target_task_data ( )

Definition at line 355 of file ompt-specific.cpp.

References __kmp_get_gtid, and __kmp_threads.

Referenced by ompt_get_target_task_data().

◆ __ompt_get_task_data()

ompt_data_t * __ompt_get_task_data ( )

Definition at line 349 of file ompt-specific.cpp.

Referenced by ompt_get_task_data().

◆ __ompt_get_task_info_internal()

◆ __ompt_get_task_info_object()

◆ __ompt_get_task_memory_internal()

int __ompt_get_task_memory_internal ( void ** addr,
size_t * size,
int blocknum )

◆ __ompt_get_teaminfo()

◆ __ompt_get_thread_data_internal()

ompt_data_t * __ompt_get_thread_data_internal ( )

◆ __ompt_get_unique_id_internal()

uint64_t __ompt_get_unique_id_internal ( )
static

Definition at line 496 of file ompt-specific.cpp.

References KMP_TEST_THEN_INC64, OMPT_THREAD_ID_BITS, and THREAD_LOCAL.

Referenced by ompt_get_unique_id().

◆ __ompt_lw_taskteam_init()

◆ __ompt_lw_taskteam_link()

◆ __ompt_lw_taskteam_unlink()

◆ __ompt_team_assign_id()

void __ompt_team_assign_id ( kmp_team_t * team,
ompt_data_t ompt_pid )

Definition at line 488 of file ompt-specific.cpp.

References kmp_team::t.

Referenced by __kmp_allocate_team().

◆ __ompt_thread_assign_wait_id()

void __ompt_thread_assign_wait_id ( void * variable)

Definition at line 215 of file ompt-specific.cpp.

Referenced by KMP_API_NAME_GOMP_ATOMIC_START().