LLVM OpenMP 19.0.0git
Classes | Macros | Typedefs | Functions | Variables
ompt-internal.h File Reference
#include "ompt-event-specific.h"
#include "omp-tools.h"

Go to the source code of this file.

Classes

struct  ompt_callbacks_internal_s
 
struct  ompt_callbacks_active_s
 
struct  ompt_task_info_t
 
struct  ompt_team_info_t
 
struct  ompt_lw_taskteam_s
 
struct  ompt_thread_info_t
 

Macros

#define OMPT_VERSION   1
 
#define _OMP_EXTERN   extern "C"
 
#define OMPT_INVOKER(x)
 
#define ompt_callback(e)   e##_callback
 
#define ompt_event_macro(event, callback, eventid)    callback ompt_callback(event);
 
#define ompt_event_macro(event, callback, eventid)   unsigned int event : 1;
 
#define TASK_TYPE_DETAILS_FORMAT(info)
 
#define OMPT_GET_RETURN_ADDRESS(level)   __builtin_return_address(level)
 
#define OMPT_GET_FRAME_ADDRESS(level)   __builtin_frame_address(level)
 
#define UNLIKELY(x)   __builtin_expect(!!(x), 0)
 
#define OMPT_NOINLINE   __attribute__((noinline))
 

Typedefs

typedef struct ompt_callbacks_internal_s ompt_callbacks_internal_t
 
typedef struct ompt_callbacks_active_s ompt_callbacks_active_t
 
typedef struct ompt_lw_taskteam_s ompt_lw_taskteam_t
 

Functions

void ompt_pre_init (void)
 
void ompt_post_init (void)
 
void ompt_fini (void)
 
int __kmp_control_tool (uint64_t command, uint64_t modifier, void *arg)
 

Variables

ompt_callbacks_internal_t ompt_callbacks
 
ompt_callbacks_active_t ompt_enabled
 

Macro Definition Documentation

◆ _OMP_EXTERN

#define _OMP_EXTERN   extern "C"

Definition at line 21 of file ompt-internal.h.

◆ ompt_callback

#define ompt_callback (   e)    e##_callback

Definition at line 27 of file ompt-internal.h.

◆ ompt_event_macro [1/2]

#define ompt_event_macro (   event,
  callback,
  eventid 
)     callback ompt_callback(event);

Definition at line 40 of file ompt-internal.h.

◆ ompt_event_macro [2/2]

#define ompt_event_macro (   event,
  callback,
  eventid 
)    unsigned int event : 1;

Definition at line 40 of file ompt-internal.h.

◆ OMPT_GET_FRAME_ADDRESS

#define OMPT_GET_FRAME_ADDRESS (   level)    __builtin_frame_address(level)

Definition at line 109 of file ompt-internal.h.

◆ OMPT_GET_RETURN_ADDRESS

#define OMPT_GET_RETURN_ADDRESS (   level)    __builtin_return_address(level)

Definition at line 108 of file ompt-internal.h.

◆ OMPT_INVOKER

#define OMPT_INVOKER (   x)
Value:
((x == fork_context_gnu) ? ompt_parallel_invoker_program \
: ompt_parallel_invoker_runtime)
@ fork_context_gnu
Called from GNU generated code, so must not invoke the microtask internally.
Definition: kmp.h:4055

Definition at line 23 of file ompt-internal.h.

◆ OMPT_NOINLINE

#define OMPT_NOINLINE   __attribute__((noinline))

Definition at line 120 of file ompt-internal.h.

◆ OMPT_VERSION

#define OMPT_VERSION   1

Definition at line 19 of file ompt-internal.h.

◆ TASK_TYPE_DETAILS_FORMAT

#define TASK_TYPE_DETAILS_FORMAT (   info)
Value:
((info->td_flags.task_serial || info->td_flags.tasking_ser) \
? ompt_task_undeferred \
: 0x0) | \
((!(info->td_flags.tiedness)) ? ompt_task_untied : 0x0) | \
(info->td_flags.final ? ompt_task_final : 0x0) | \
(info->td_flags.merged_if0 ? ompt_task_mergeable : 0x0)

Definition at line 47 of file ompt-internal.h.

◆ UNLIKELY

#define UNLIKELY (   x)    __builtin_expect(!!(x), 0)

Definition at line 119 of file ompt-internal.h.

Typedef Documentation

◆ ompt_callbacks_active_t

◆ ompt_callbacks_internal_t

◆ ompt_lw_taskteam_t

Function Documentation

◆ __kmp_control_tool()

int __kmp_control_tool ( uint64_t  command,
uint64_t  modifier,
void arg 
)

◆ ompt_fini()

void ompt_fini ( void  )

◆ ompt_post_init()

void ompt_post_init ( void  )

◆ ompt_pre_init()

void ompt_pre_init ( void  )

Variable Documentation

◆ ompt_callbacks

ompt_callbacks_internal_t ompt_callbacks
extern

Definition at line 101 of file ompt-general.cpp.

Referenced by __kmp_acquire_atomic_lock(), __kmp_barrier_template(), __kmp_control_tool(), __kmp_dispatch_init(), __kmp_dist_for_static_init(), __kmp_for_static_init(), __kmp_fork_barrier(), __kmp_fork_call(), __kmp_fork_in_teams(), __kmp_GOMP_fork_call(), __kmp_internal_join(), __kmp_invoke_task(), __kmp_invoke_task_func(), __kmp_invoke_teams_master(), __kmp_join_barrier(), __kmp_join_call(), __kmp_launch_thread(), __kmp_omp_taskloop_task(), __kmp_register_root(), __kmp_release_atomic_lock(), __kmp_reset_root(), __kmp_serial_fork_call(), __kmp_serialized_parallel(), __kmp_taskloop(), __kmp_track_dependence(), __kmpc_cancel(), __kmpc_cancellationpoint(), __kmpc_critical(), __kmpc_destroy_lock(), __kmpc_destroy_nest_lock(), __kmpc_doacross_post(), __kmpc_doacross_wait(), __kmpc_end_critical(), __kmpc_end_masked(), __kmpc_end_master(), __kmpc_end_ordered(), __kmpc_end_scope(), __kmpc_end_sections(), __kmpc_end_serialized_parallel(), __kmpc_end_single(), __kmpc_end_taskgroup(), __kmpc_error(), __kmpc_flush(), __kmpc_for_static_fini(), __kmpc_init_lock(), __kmpc_init_nest_lock(), __kmpc_masked(), __kmpc_master(), __kmpc_next_section(), __kmpc_omp_task(), __kmpc_omp_task_begin_if0_template(), __kmpc_omp_task_parts(), __kmpc_omp_task_with_deps(), __kmpc_omp_taskwait_deps_51(), __kmpc_omp_taskwait_template(), __kmpc_ordered(), __kmpc_scope(), __kmpc_sections_init(), __kmpc_set_lock(), __kmpc_set_nest_lock(), __kmpc_single(), __kmpc_taskgroup(), __kmpc_test_lock(), __kmpc_test_nest_lock(), __kmpc_unset_lock(), __kmpc_unset_nest_lock(), KMP_API_NAME_GOMP_SINGLE_START(), ompt_libomp_connect(), and ompt_post_init().

◆ ompt_enabled

ompt_callbacks_active_t ompt_enabled
extern

Definition at line 87 of file ompt-general.cpp.

Referenced by __kmp_acquire_atomic_lock(), __kmp_acquire_queuing_lock_timed_template(), __kmp_barrier_template(), __kmp_control_tool(), __kmp_dispatch_init(), __kmp_dist_for_static_init(), __kmp_for_static_init(), __kmp_fork_barrier(), __kmp_fork_call(), __kmp_fork_in_teams(), __kmp_fulfill_event(), __kmp_GOMP_fork_call(), __kmp_GOMP_microtask_wrapper(), __kmp_GOMP_par_reductions_microtask_wrapper(), __kmp_GOMP_parallel_microtask_wrapper(), __kmp_init_implicit_task(), __kmp_internal_join(), __kmp_invoke_task(), __kmp_invoke_task_func(), __kmp_invoke_teams_master(), __kmp_join_barrier(), __kmp_join_call(), __kmp_launch_thread(), __kmp_omp_taskloop_task(), __kmp_register_root(), __kmp_release_atomic_lock(), __kmp_reset_root(), __kmp_serial_fork_call(), __kmp_serialized_parallel(), __kmp_task_alloc(), __kmp_task_dup_alloc(), __kmp_taskloop(), __kmp_taskloop_linear(), __kmp_track_dependence(), __kmp_wait_template(), __kmpc_barrier(), __kmpc_barrier_master(), __kmpc_barrier_master_nowait(), __kmpc_cancel(), __kmpc_cancellationpoint(), __kmpc_copyprivate(), __kmpc_copyprivate_light(), __kmpc_critical(), __kmpc_destroy_lock(), __kmpc_destroy_nest_lock(), __kmpc_doacross_post(), __kmpc_doacross_wait(), __kmpc_end(), __kmpc_end_critical(), __kmpc_end_masked(), __kmpc_end_master(), __kmpc_end_ordered(), __kmpc_end_reduce(), __kmpc_end_scope(), __kmpc_end_sections(), __kmpc_end_serialized_parallel(), __kmpc_end_single(), __kmpc_end_taskgroup(), __kmpc_error(), __kmpc_flush(), __kmpc_for_static_fini(), __kmpc_fork_call(), __kmpc_fork_teams(), __kmpc_init_lock(), __kmpc_init_nest_lock(), __kmpc_masked(), __kmpc_master(), __kmpc_next_section(), __kmpc_omp_task(), __kmpc_omp_task_begin_if0(), __kmpc_omp_task_begin_if0_template(), __kmpc_omp_task_complete_if0(), __kmpc_omp_task_parts(), __kmpc_omp_task_with_deps(), __kmpc_omp_taskwait(), __kmpc_omp_taskwait_deps_51(), __kmpc_omp_taskwait_template(), __kmpc_omp_taskyield(), __kmpc_ordered(), __kmpc_reduce(), __kmpc_reduce_nowait(), __kmpc_scope(), __kmpc_sections_init(), __kmpc_set_lock(), __kmpc_set_nest_lock(), __kmpc_single(), __kmpc_taskgroup(), __kmpc_test_lock(), __kmpc_test_nest_lock(), __kmpc_unset_lock(), __kmpc_unset_nest_lock(), KMP_API_NAME_GOMP_BARRIER(), KMP_API_NAME_GOMP_PARALLEL_END(), KMP_API_NAME_GOMP_PARALLEL_START(), KMP_API_NAME_GOMP_SINGLE_COPY_END(), KMP_API_NAME_GOMP_SINGLE_COPY_START(), KMP_API_NAME_GOMP_SINGLE_START(), ompt_fini(), ompt_get_callback(), ompt_get_parallel_info(), ompt_get_partition_place_nums(), ompt_get_place_num(), ompt_get_proc_id(), ompt_get_state(), ompt_get_task_info(), ompt_get_thread_data(), ompt_libomp_connect(), ompt_post_init(), and ompt_pre_init().