LLVM OpenMP 22.0.0git
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)
#define ompt_event_macro(event, callback, eventid)
#define ompt_event_macro(event, callback, eventid)
#define TASK_TYPE_DETAILS_FORMAT(info)
#define OMPT_GET_RETURN_ADDRESS(level)
#define OMPT_GET_FRAME_ADDRESS(level)
#define OMPT_FRAME_FLAGS_APP   (ompt_frame_application | ompt_frame_cfa)
#define OMPT_FRAME_FLAGS_RUNTIME   (ompt_frame_runtime | ompt_frame_cfa)
#define UNLIKELY(x)
#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.

Referenced by ompt_libomp_connect().

◆ ompt_callback

#define ompt_callback ( e)
Value:
e##_callback

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

◆ ompt_event_macro [1/2]

#define ompt_event_macro ( event,
callback,
eventid )
Value:
callback ompt_callback(event);
void const char const char int ITT_FORMAT __itt_group_sync x void const char ITT_FORMAT __itt_group_sync s void ITT_FORMAT __itt_group_sync p void ITT_FORMAT p void ITT_FORMAT p no args __itt_suppress_mode_t unsigned int void size_t ITT_FORMAT d void ITT_FORMAT p void ITT_FORMAT p __itt_model_site __itt_model_site_instance ITT_FORMAT p __itt_model_task __itt_model_task_instance ITT_FORMAT p void ITT_FORMAT p void ITT_FORMAT p void size_t ITT_FORMAT d void ITT_FORMAT p const wchar_t ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s no args void ITT_FORMAT p size_t ITT_FORMAT d no args const wchar_t const wchar_t ITT_FORMAT s __itt_heap_function void size_t int ITT_FORMAT d __itt_heap_function void ITT_FORMAT p __itt_heap_function void void size_t int ITT_FORMAT d no args no args unsigned int ITT_FORMAT u const __itt_domain __itt_id ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain __itt_id ITT_FORMAT p const __itt_domain __itt_id __itt_timestamp __itt_timestamp ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain ITT_FORMAT p const __itt_domain __itt_string_handle unsigned long long ITT_FORMAT lu const __itt_domain __itt_string_handle unsigned long long ITT_FORMAT lu const __itt_domain __itt_id __itt_string_handle __itt_metadata_type size_t void ITT_FORMAT p const __itt_domain __itt_id __itt_string_handle const wchar_t size_t ITT_FORMAT lu const __itt_domain __itt_id __itt_relation __itt_id ITT_FORMAT p const wchar_t int ITT_FORMAT __itt_group_mark d __itt_event event
#define ompt_callback(e)

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

◆ ompt_event_macro [2/2]

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

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

◆ OMPT_FRAME_FLAGS_APP

#define OMPT_FRAME_FLAGS_APP   (ompt_frame_application | ompt_frame_cfa)

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

Referenced by __kmpc_omp_task_begin_if0_template().

◆ OMPT_FRAME_FLAGS_RUNTIME

#define OMPT_FRAME_FLAGS_RUNTIME   (ompt_frame_runtime | ompt_frame_cfa)

◆ OMPT_GET_FRAME_ADDRESS

◆ OMPT_GET_RETURN_ADDRESS

◆ 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:4062

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

Referenced by __kmp_fork_call(), __kmp_fork_in_teams(), __kmp_join_call(), and __kmp_serial_fork_call().

◆ OMPT_NOINLINE

#define OMPT_NOINLINE   __attribute__((noinline))

Definition at line 127 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.target \
? ompt_task_target \
: (info->td_flags.tasktype ? ompt_task_explicit \
: ompt_task_implicit)) | \
(info->td_flags.merged_if0 ? ompt_task_mergeable : 0x0)

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

Referenced by __kmp_omp_taskloop_task(), __kmpc_omp_task(), __kmpc_omp_task_begin_if0_template(), __kmpc_omp_task_parts(), __kmpc_omp_task_with_deps(), and __ompt_get_task_info_internal().

◆ UNLIKELY

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

Definition at line 126 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 )

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

References __kmp_entry_gtid, ompt_callbacks, and ompt_enabled.

Referenced by FTN_CONTROL_TOOL().

◆ ompt_fini()

◆ ompt_post_init()

◆ ompt_pre_init()

Variable Documentation

◆ ompt_callbacks

ompt_callbacks_internal_t ompt_callbacks
extern

Definition at line 102 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(), and ompt_post_init().

◆ ompt_enabled

ompt_callbacks_active_t ompt_enabled
extern

Definition at line 88 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().