rocprofiler-sdk/ompt/omp-tools.h File Reference

rocprofiler-sdk/ompt/omp-tools.h File Reference#

Rocprofiler SDK Developer API: rocprofiler-sdk/ompt/omp-tools.h File Reference
Rocprofiler SDK Developer API 0.6.0
ROCm Profiling API and tools
omp-tools.h File Reference
#include <stddef.h>
#include <stdint.h>
+ Include dependency graph for omp-tools.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

union  ompt_data_t
 
struct  ompt_frame_t
 
struct  ompt_start_tool_result_t
 
struct  ompt_record_abstract_t
 
struct  ompt_dependence_t
 
struct  ompt_dispatch_chunk_t
 
struct  ompt_record_thread_begin_t
 
struct  ompt_record_parallel_begin_t
 
struct  ompt_record_parallel_end_t
 
struct  ompt_record_work_t
 
struct  ompt_record_dispatch_t
 
struct  ompt_record_task_create_t
 
struct  ompt_record_dependences_t
 
struct  ompt_record_task_dependence_t
 
struct  ompt_record_task_schedule_t
 
struct  ompt_record_implicit_task_t
 
struct  ompt_record_masked_t
 
struct  ompt_record_sync_region_t
 
struct  ompt_record_mutex_acquire_t
 
struct  ompt_record_mutex_t
 
struct  ompt_record_nest_lock_t
 
struct  ompt_record_flush_t
 
struct  ompt_record_cancel_t
 
struct  ompt_record_target_data_op_t
 
struct  ompt_record_target_t
 
struct  ompt_record_target_map_t
 
struct  ompt_record_target_kernel_t
 
struct  ompt_record_control_tool_t
 
struct  ompt_record_error_t
 
struct  ompd_address_t
 
struct  ompd_frame_info_t
 
struct  ompd_device_type_sizes_t
 
struct  ompd_callbacks_t
 
struct  ompt_record_ompt_t
 
union  ompt_record_ompt_t.record
 

Macros

#define DEPRECATED_51
 
#define FOREACH_OMPT_INQUIRY_FN(macro)
 
#define FOREACH_OMPT_STATE(macro)
 
#define FOREACH_KMP_MUTEX_IMPL(macro)
 
#define FOREACH_OMPT_HOST_EVENT(macro)
 
#define FOREACH_OMPT_DEVICE_EVENT(macro)
 
#define FOREACH_OMPT_NOEMI_EVENT(macro)
 
#define FOREACH_OMPT_EMI_EVENT(macro)
 
#define FOREACH_OMPT_50_TARGET_EVENT(macro)
 
#define FOREACH_OMPT_51_TARGET_EVENT(macro)
 
#define FOREACH_OMPT_EVENT(macro)
 
#define FOREACH_OMPT_51_EVENT(macro)
 
#define kmp_mutex_impl_macro(impl, code)   impl = code,
 
#define ompt_id_none   0
 
#define ompt_data_none
 
#define ompt_time_none   0
 
#define ompt_hwid_none   0
 
#define ompt_addr_none   ~0
 
#define ompt_mutex_impl_none   0
 
#define ompt_wait_id_none   0
 
#define ompd_segment_none   0
 

Typedefs

typedef uint64_t ompt_id_t
 
typedef uint64_t ompt_device_time_t
 
typedef uint64_t ompt_buffer_cursor_t
 
typedef uint64_t ompt_hwid_t
 
typedef uint64_t ompt_wait_id_t
 
typedef uint64_t(* ompt_get_unique_id_t) (void)
 
typedef uint64_t ompd_size_t
 
typedef uint64_t ompd_wait_id_t
 
typedef uint64_t ompd_addr_t
 
typedef int64_t ompd_word_t
 
typedef uint64_t ompd_seg_t
 
typedef uint64_t ompd_device_t
 
typedef uint64_t ompd_thread_id_t
 
typedef uint64_t ompd_icv_id_t
 
typedef void(* ompt_interface_fn_t) (void)
 
typedef ompt_interface_fn_t(* ompt_function_lookup_t) (const char *interface_function_name)
 
typedef void(* ompt_callback_t) (void)
 
typedef void ompt_device_t
 
typedef void ompt_buffer_t
 
typedef void(* ompt_callback_buffer_request_t) (int device_num, ompt_buffer_t **buffer, unsigned long *bytes)
 
typedef void(* ompt_callback_buffer_complete_t) (int device_num, ompt_buffer_t *buffer, unsigned long bytes, ompt_buffer_cursor_t begin, int buffer_owned)
 
typedef void(* ompt_finalize_t) (ompt_data_t *tool_data)
 
typedef int(* ompt_initialize_t) (ompt_function_lookup_t lookup, int initial_device_num, ompt_data_t *tool_data)
 
typedef int(* ompt_enumerate_states_t) (int current_state, int *next_state, const char **next_state_name)
 
typedef int(* ompt_enumerate_mutex_impls_t) (int current_impl, int *next_impl, const char **next_impl_name)
 
typedef ompt_set_result_t(* ompt_set_callback_t) (ompt_callbacks_t event, ompt_callback_t callback)
 
typedef int(* ompt_get_callback_t) (ompt_callbacks_t event, ompt_callback_t *callback)
 
typedef ompt_data_t *(* ompt_get_thread_data_t) (void)
 
typedef int(* ompt_get_num_procs_t) (void)
 
typedef int(* ompt_get_num_places_t) (void)
 
typedef int(* ompt_get_place_proc_ids_t) (int place_num, int ids_size, int *ids)
 
typedef int(* ompt_get_place_num_t) (void)
 
typedef int(* ompt_get_partition_place_nums_t) (int place_nums_size, int *place_nums)
 
typedef int(* ompt_get_proc_id_t) (void)
 
typedef int(* ompt_get_state_t) (ompt_wait_id_t *wait_id)
 
typedef int(* ompt_get_parallel_info_t) (int ancestor_level, ompt_data_t **parallel_data, int *team_size)
 
typedef int(* ompt_get_task_info_t) (int ancestor_level, int *flags, ompt_data_t **task_data, ompt_frame_t **task_frame, ompt_data_t **parallel_data, int *thread_num)
 
typedef int(* ompt_get_task_memory_t) (void **addr, unsigned long *size, int block)
 
typedef int(* ompt_get_target_info_t) (uint64_t *device_num, ompt_id_t *target_id, ompt_id_t *host_op_id)
 
typedef int(* ompt_get_num_devices_t) (void)
 
typedef void(* ompt_finalize_tool_t) (void)
 
typedef int(* ompt_get_device_num_procs_t) (ompt_device_t *device)
 
typedef ompt_device_time_t(* ompt_get_device_time_t) (ompt_device_t *device)
 
typedef double(* ompt_translate_time_t) (ompt_device_t *device, ompt_device_time_t time)
 
typedef ompt_set_result_t(* ompt_set_trace_ompt_t) (ompt_device_t *device, unsigned int enable, unsigned int etype)
 
typedef ompt_set_result_t(* ompt_set_trace_native_t) (ompt_device_t *device, int enable, int flags)
 
typedef int(* ompt_start_trace_t) (ompt_device_t *device, ompt_callback_buffer_request_t request, ompt_callback_buffer_complete_t complete)
 
typedef int(* ompt_pause_trace_t) (ompt_device_t *device, int begin_pause)
 
typedef int(* ompt_flush_trace_t) (ompt_device_t *device)
 
typedef int(* ompt_stop_trace_t) (ompt_device_t *device)
 
typedef int(* ompt_advance_buffer_cursor_t) (ompt_device_t *device, ompt_buffer_t *buffer, unsigned long size, ompt_buffer_cursor_t current, ompt_buffer_cursor_t *next)
 
typedef ompt_record_t(* ompt_get_record_type_t) (ompt_buffer_t *buffer, ompt_buffer_cursor_t current)
 
typedef void *(* ompt_get_record_native_t) (ompt_buffer_t *buffer, ompt_buffer_cursor_t current, ompt_id_t *host_op_id)
 
typedef ompt_record_abstract_t *(* ompt_get_record_abstract_t) (void *native_record)
 
typedef void(* ompt_callback_thread_begin_t) (ompt_thread_t thread_type, ompt_data_t *thread_data)
 
typedef void(* ompt_callback_thread_end_t) (ompt_data_t *thread_data)
 
typedef void(* ompt_callback_parallel_begin_t) (ompt_data_t *encountering_task_data, const ompt_frame_t *encountering_task_frame, ompt_data_t *parallel_data, unsigned int requested_parallelism, int flags, const void *codeptr_ra)
 
typedef void(* ompt_callback_parallel_end_t) (ompt_data_t *parallel_data, ompt_data_t *encountering_task_data, int flags, const void *codeptr_ra)
 
typedef void(* ompt_callback_work_t) (ompt_work_t work_type, ompt_scope_endpoint_t endpoint, ompt_data_t *parallel_data, ompt_data_t *task_data, uint64_t count, const void *codeptr_ra)
 
typedef void(* ompt_callback_dispatch_t) (ompt_data_t *parallel_data, ompt_data_t *task_data, ompt_dispatch_t kind, ompt_data_t instance)
 
typedef void(* ompt_callback_task_create_t) (ompt_data_t *encountering_task_data, const ompt_frame_t *encountering_task_frame, ompt_data_t *new_task_data, int flags, int has_dependences, const void *codeptr_ra)
 
typedef void(* ompt_callback_dependences_t) (ompt_data_t *task_data, const ompt_dependence_t *deps, int ndeps)
 
typedef void(* ompt_callback_task_dependence_t) (ompt_data_t *src_task_data, ompt_data_t *sink_task_data)
 
typedef void(* ompt_callback_task_schedule_t) (ompt_data_t *prior_task_data, ompt_task_status_t prior_task_status, ompt_data_t *next_task_data)
 
typedef void(* ompt_callback_implicit_task_t) (ompt_scope_endpoint_t endpoint, ompt_data_t *parallel_data, ompt_data_t *task_data, unsigned int actual_parallelism, unsigned int index, int flags)
 
typedef void(* ompt_callback_masked_t) (ompt_scope_endpoint_t endpoint, ompt_data_t *parallel_data, ompt_data_t *task_data, const void *codeptr_ra)
 
typedef ompt_callback_masked_t ompt_callback_master_t
 
typedef void(* ompt_callback_sync_region_t) (ompt_sync_region_t kind, ompt_scope_endpoint_t endpoint, ompt_data_t *parallel_data, ompt_data_t *task_data, const void *codeptr_ra)
 
typedef void(* ompt_callback_mutex_acquire_t) (ompt_mutex_t kind, unsigned int hint, unsigned int impl, ompt_wait_id_t wait_id, const void *codeptr_ra)
 
typedef void(* ompt_callback_mutex_t) (ompt_mutex_t kind, ompt_wait_id_t wait_id, const void *codeptr_ra)
 
typedef void(* ompt_callback_nest_lock_t) (ompt_scope_endpoint_t endpoint, ompt_wait_id_t wait_id, const void *codeptr_ra)
 
typedef void(* ompt_callback_flush_t) (ompt_data_t *thread_data, const void *codeptr_ra)
 
typedef void(* ompt_callback_cancel_t) (ompt_data_t *task_data, int flags, const void *codeptr_ra)
 
typedef void(* ompt_callback_device_initialize_t) (int device_num, const char *type, ompt_device_t *device, ompt_function_lookup_t lookup, const char *documentation)
 
typedef void(* ompt_callback_device_finalize_t) (int device_num)
 
typedef void(* ompt_callback_device_load_t) (int device_num, const char *filename, int64_t offset_in_file, void *vma_in_file, unsigned long bytes, void *host_addr, void *device_addr, uint64_t module_id)
 
typedef void(* ompt_callback_device_unload_t) (int device_num, uint64_t module_id)
 
typedef void(* ompt_callback_target_data_op_emi_t) (ompt_scope_endpoint_t endpoint, ompt_data_t *target_task_data, ompt_data_t *target_data, ompt_id_t *host_op_id, ompt_target_data_op_t optype, void *src_addr, int src_device_num, void *dest_addr, int dest_device_num, unsigned long bytes, const void *codeptr_ra)
 
typedef void(* ompt_callback_target_data_op_t) (ompt_id_t target_id, ompt_id_t host_op_id, ompt_target_data_op_t optype, void *src_addr, int src_device_num, void *dest_addr, int dest_device_num, unsigned long bytes, const void *codeptr_ra)
 
typedef void(* ompt_callback_target_emi_t) (ompt_target_t kind, ompt_scope_endpoint_t endpoint, int device_num, ompt_data_t *task_data, ompt_data_t *target_task_data, ompt_data_t *target_data, const void *codeptr_ra)
 
typedef void(* ompt_callback_target_t) (ompt_target_t kind, ompt_scope_endpoint_t endpoint, int device_num, ompt_data_t *task_data, ompt_id_t target_id, const void *codeptr_ra)
 
typedef void(* ompt_callback_target_map_emi_t) (ompt_data_t *target_data, unsigned int nitems, void **host_addr, void **device_addr, unsigned long *bytes, unsigned int *mapping_flags, const void *codeptr_ra)
 
typedef void(* ompt_callback_target_map_t) (ompt_id_t target_id, unsigned int nitems, void **host_addr, void **device_addr, unsigned long *bytes, unsigned int *mapping_flags, const void *codeptr_ra)
 
typedef void(* ompt_callback_target_submit_emi_t) (ompt_scope_endpoint_t endpoint, ompt_data_t *target_data, ompt_id_t *host_op_id, unsigned int requested_num_teams)
 
typedef void(* ompt_callback_target_submit_t) (ompt_id_t target_id, ompt_id_t host_op_id, unsigned int requested_num_teams)
 
typedef int(* ompt_callback_control_tool_t) (uint64_t command, uint64_t modifier, void *arg, const void *codeptr_ra)
 
typedef void(* ompt_callback_error_t) (ompt_severity_t severity, const char *message, unsigned long length, const void *codeptr_ra)
 
typedef struct _ompd_aspace_handle ompd_address_space_handle_t
 
typedef struct _ompd_thread_handle ompd_thread_handle_t
 
typedef struct _ompd_parallel_handle ompd_parallel_handle_t
 
typedef struct _ompd_task_handle ompd_task_handle_t
 
typedef struct _ompd_aspace_cont ompd_address_space_context_t
 
typedef struct _ompd_thread_cont ompd_thread_context_t
 
typedef ompd_rc_t(* ompd_callback_memory_alloc_fn_t) (ompd_size_t nbytes, void **ptr)
 
typedef ompd_rc_t(* ompd_callback_memory_free_fn_t) (void *ptr)
 
typedef ompd_rc_t(* ompd_callback_get_thread_context_for_thread_id_fn_t) (ompd_address_space_context_t *address_space_context, ompd_thread_id_t kind, ompd_size_t sizeof_thread_id, const void *thread_id, ompd_thread_context_t **thread_context)
 
typedef ompd_rc_t(* ompd_callback_sizeof_fn_t) (ompd_address_space_context_t *address_space_context, ompd_device_type_sizes_t *sizes)
 
typedef ompd_rc_t(* ompd_callback_symbol_addr_fn_t) (ompd_address_space_context_t *address_space_context, ompd_thread_context_t *thread_context, const char *symbol_name, ompd_address_t *symbol_addr, const char *file_name)
 
typedef ompd_rc_t(* ompd_callback_memory_read_fn_t) (ompd_address_space_context_t *address_space_context, ompd_thread_context_t *thread_context, const ompd_address_t *addr, ompd_size_t nbytes, void *buffer)
 
typedef ompd_rc_t(* ompd_callback_memory_write_fn_t) (ompd_address_space_context_t *address_space_context, ompd_thread_context_t *thread_context, const ompd_address_t *addr, ompd_size_t nbytes, const void *buffer)
 
typedef ompd_rc_t(* ompd_callback_device_host_fn_t) (ompd_address_space_context_t *address_space_context, const void *input, ompd_size_t unit_size, ompd_size_t count, void *output)
 
typedef ompd_rc_t(* ompd_callback_print_string_fn_t) (const char *string, int category)
 
typedef ompt_record_ompt_t *(* ompt_get_record_ompt_t) (ompt_buffer_t *buffer, ompt_buffer_cursor_t current)
 

Enumerations

enum  kmp_mutex_impl_t {
  kmp_mutex_impl_none = 0 ,
  kmp_mutex_impl_spin = 1 ,
  kmp_mutex_impl_queuing = 2 ,
  kmp_mutex_impl_speculative = 3
}
 
enum  ompt_callbacks_t {
  ompt_callback_thread_begin = 1 ,
  ompt_callback_thread_end = 2 ,
  ompt_callback_parallel_begin = 3 ,
  ompt_callback_parallel_end = 4 ,
  ompt_callback_task_create = 5 ,
  ompt_callback_task_schedule = 6 ,
  ompt_callback_implicit_task = 7 ,
  ompt_callback_target = 8 ,
  ompt_callback_target_data_op = 9 ,
  ompt_callback_target_submit = 10 ,
  ompt_callback_control_tool = 11 ,
  ompt_callback_device_initialize = 12 ,
  ompt_callback_device_finalize = 13 ,
  ompt_callback_device_load = 14 ,
  ompt_callback_device_unload = 15 ,
  ompt_callback_sync_region_wait = 16 ,
  ompt_callback_mutex_released = 17 ,
  ompt_callback_dependences = 18 ,
  ompt_callback_task_dependence = 19 ,
  ompt_callback_work = 20 ,
  ompt_callback_master = 21 ,
  ompt_callback_masked = 21 ,
  ompt_callback_target_map = 22 ,
  ompt_callback_sync_region = 23 ,
  ompt_callback_lock_init = 24 ,
  ompt_callback_lock_destroy = 25 ,
  ompt_callback_mutex_acquire = 26 ,
  ompt_callback_mutex_acquired = 27 ,
  ompt_callback_nest_lock = 28 ,
  ompt_callback_flush = 29 ,
  ompt_callback_cancel = 30 ,
  ompt_callback_reduction = 31 ,
  ompt_callback_dispatch = 32 ,
  ompt_callback_target_emi = 33 ,
  ompt_callback_target_data_op_emi = 34 ,
  ompt_callback_target_submit_emi = 35 ,
  ompt_callback_target_map_emi = 36 ,
  ompt_callback_error = 37
}
 
enum  ompt_record_t {
  ompt_record_ompt = 1 ,
  ompt_record_native = 2 ,
  ompt_record_invalid = 3
}
 
enum  ompt_record_native_t {
  ompt_record_native_info = 1 ,
  ompt_record_native_event = 2
}
 
enum  ompt_set_result_t {
  ompt_set_error = 0 ,
  ompt_set_never = 1 ,
  ompt_set_impossible = 2 ,
  ompt_set_sometimes = 3 ,
  ompt_set_sometimes_paired = 4 ,
  ompt_set_always = 5
}
 
enum  ompt_thread_t {
  ompt_thread_initial = 1 ,
  ompt_thread_worker = 2 ,
  ompt_thread_other = 3 ,
  ompt_thread_unknown = 4
}
 
enum  ompt_scope_endpoint_t {
  ompt_scope_begin = 1 ,
  ompt_scope_end = 2 ,
  ompt_scope_beginend = 3
}
 
enum  ompt_dispatch_t {
  ompt_dispatch_iteration = 1 ,
  ompt_dispatch_section = 2 ,
  ompt_dispatch_ws_loop_chunk = 3 ,
  ompt_dispatch_taskloop_chunk = 4 ,
  ompt_dispatch_distribute_chunk = 5
}
 
enum  ompt_sync_region_t {
  ompt_sync_region_barrier = 1 ,
  ompt_sync_region_barrier_implicit = 2 ,
  ompt_sync_region_barrier_explicit = 3 ,
  ompt_sync_region_barrier_implementation = 4 ,
  ompt_sync_region_taskwait = 5 ,
  ompt_sync_region_taskgroup = 6 ,
  ompt_sync_region_reduction = 7 ,
  ompt_sync_region_barrier_implicit_workshare = 8 ,
  ompt_sync_region_barrier_implicit_parallel = 9 ,
  ompt_sync_region_barrier_teams = 10
}
 
enum  ompt_target_data_op_t {
  ompt_target_data_alloc = 1 ,
  ompt_target_data_transfer_to_device = 2 ,
  ompt_target_data_transfer_from_device = 3 ,
  ompt_target_data_delete = 4 ,
  ompt_target_data_associate = 5 ,
  ompt_target_data_disassociate = 6 ,
  ompt_target_data_alloc_async = 17 ,
  ompt_target_data_transfer_to_device_async = 18 ,
  ompt_target_data_transfer_from_device_async = 19 ,
  ompt_target_data_delete_async = 20
}
 
enum  ompt_work_t {
  ompt_work_loop = 1 ,
  ompt_work_sections = 2 ,
  ompt_work_single_executor = 3 ,
  ompt_work_single_other = 4 ,
  ompt_work_workshare = 5 ,
  ompt_work_distribute = 6 ,
  ompt_work_taskloop = 7 ,
  ompt_work_scope = 8 ,
  ompt_work_loop_static = 10 ,
  ompt_work_loop_dynamic = 11 ,
  ompt_work_loop_guided = 12 ,
  ompt_work_loop_other = 13
}
 
enum  ompt_mutex_t {
  ompt_mutex_lock = 1 ,
  ompt_mutex_test_lock = 2 ,
  ompt_mutex_nest_lock = 3 ,
  ompt_mutex_test_nest_lock = 4 ,
  ompt_mutex_critical = 5 ,
  ompt_mutex_atomic = 6 ,
  ompt_mutex_ordered = 7
}
 
enum  ompt_native_mon_flag_t {
  ompt_native_data_motion_explicit = 0x01 ,
  ompt_native_data_motion_implicit = 0x02 ,
  ompt_native_kernel_invocation = 0x04 ,
  ompt_native_kernel_execution = 0x08 ,
  ompt_native_driver = 0x10 ,
  ompt_native_runtime = 0x20 ,
  ompt_native_overhead = 0x40 ,
  ompt_native_idleness = 0x80
}
 
enum  ompt_task_flag_t {
  ompt_task_initial = 0x00000001 ,
  ompt_task_implicit = 0x00000002 ,
  ompt_task_explicit = 0x00000004 ,
  ompt_task_target = 0x00000008 ,
  ompt_task_taskwait = 0x00000010 ,
  ompt_task_undeferred = 0x08000000 ,
  ompt_task_untied = 0x10000000 ,
  ompt_task_final = 0x20000000 ,
  ompt_task_mergeable = 0x40000000 ,
  ompt_task_merged = 0x80000000
}
 
enum  ompt_task_status_t {
  ompt_task_complete = 1 ,
  ompt_task_yield = 2 ,
  ompt_task_cancel = 3 ,
  ompt_task_detach = 4 ,
  ompt_task_early_fulfill = 5 ,
  ompt_task_late_fulfill = 6 ,
  ompt_task_switch = 7 ,
  ompt_taskwait_complete = 8
}
 
enum  ompt_target_t {
  ompt_target = 1 ,
  ompt_target_enter_data = 2 ,
  ompt_target_exit_data = 3 ,
  ompt_target_update = 4 ,
  ompt_target_nowait = 9 ,
  ompt_target_enter_data_nowait = 10 ,
  ompt_target_exit_data_nowait = 11 ,
  ompt_target_update_nowait = 12
}
 
enum  ompt_parallel_flag_t {
  ompt_parallel_invoker_program = 0x00000001 ,
  ompt_parallel_invoker_runtime = 0x00000002 ,
  ompt_parallel_league = 0x40000000 ,
  ompt_parallel_team = 0x80000000
}
 
enum  ompt_target_map_flag_t {
  ompt_target_map_flag_to = 0x01 ,
  ompt_target_map_flag_from = 0x02 ,
  ompt_target_map_flag_alloc = 0x04 ,
  ompt_target_map_flag_release = 0x08 ,
  ompt_target_map_flag_delete = 0x10 ,
  ompt_target_map_flag_implicit = 0x20
}
 
enum  ompt_dependence_type_t {
  ompt_dependence_type_in = 1 ,
  ompt_dependence_type_out = 2 ,
  ompt_dependence_type_inout = 3 ,
  ompt_dependence_type_mutexinoutset = 4 ,
  ompt_dependence_type_source = 5 ,
  ompt_dependence_type_sink = 6 ,
  ompt_dependence_type_inoutset = 7 ,
  ompt_dependence_type_out_all_memory = 34 ,
  ompt_dependence_type_inout_all_memory = 35
}
 
enum  ompt_severity_t {
  ompt_warning = 1 ,
  ompt_fatal = 2
}
 
enum  ompt_cancel_flag_t {
  ompt_cancel_parallel = 0x01 ,
  ompt_cancel_sections = 0x02 ,
  ompt_cancel_loop = 0x04 ,
  ompt_cancel_taskgroup = 0x08 ,
  ompt_cancel_activated = 0x10 ,
  ompt_cancel_detected = 0x20 ,
  ompt_cancel_discarded_task = 0x40
}
 
enum  ompt_frame_flag_t {
  ompt_frame_runtime = 0x00 ,
  ompt_frame_application = 0x01 ,
  ompt_frame_cfa = 0x10 ,
  ompt_frame_framepointer = 0x20 ,
  ompt_frame_stackaddress = 0x30
}
 
enum  ompt_state_t {
  ompt_state_work_serial = 0x000 ,
  ompt_state_work_parallel = 0x001 ,
  ompt_state_work_reduction = 0x002 ,
  ompt_state_wait_barrier = 0x010 ,
  ompt_state_wait_barrier_implicit_parallel = 0x011 ,
  ompt_state_wait_barrier_implicit_workshare = 0x012 ,
  ompt_state_wait_barrier_implicit = 0x013 ,
  ompt_state_wait_barrier_explicit = 0x014 ,
  ompt_state_wait_barrier_implementation = 0x015 ,
  ompt_state_wait_barrier_teams = 0x016 ,
  ompt_state_wait_taskwait = 0x020 ,
  ompt_state_wait_taskgroup = 0x021 ,
  ompt_state_wait_mutex = 0x040 ,
  ompt_state_wait_lock = 0x041 ,
  ompt_state_wait_critical = 0x042 ,
  ompt_state_wait_atomic = 0x043 ,
  ompt_state_wait_ordered = 0x044 ,
  ompt_state_wait_target = 0x080 ,
  ompt_state_wait_target_map = 0x081 ,
  ompt_state_wait_target_update = 0x082 ,
  ompt_state_idle = 0x100 ,
  ompt_state_overhead = 0x101 ,
  ompt_state_undefined = 0x102
}
 
enum  ompd_scope_t {
  ompd_scope_global = 1 ,
  ompd_scope_address_space = 2 ,
  ompd_scope_thread = 3 ,
  ompd_scope_parallel = 4 ,
  ompd_scope_implicit_task = 5 ,
  ompd_scope_task = 6
}
 
enum  ompd_rc_t {
  ompd_rc_ok = 0 ,
  ompd_rc_unavailable = 1 ,
  ompd_rc_stale_handle = 2 ,
  ompd_rc_bad_input = 3 ,
  ompd_rc_error = 4 ,
  ompd_rc_unsupported = 5 ,
  ompd_rc_needs_state_tracking = 6 ,
  ompd_rc_incompatible = 7 ,
  ompd_rc_device_read_error = 8 ,
  ompd_rc_device_write_error = 9 ,
  ompd_rc_nomem = 10 ,
  ompd_rc_incomplete = 11 ,
  ompd_rc_callback_error = 12
}
 

Functions

void ompd_dll_locations_valid (void)
 
void ompd_bp_parallel_begin (void)
 
void ompd_bp_parallel_end (void)
 
void ompd_bp_task_begin (void)
 
void ompd_bp_task_end (void)
 
void ompd_bp_thread_begin (void)
 
void ompd_bp_thread_end (void)
 
void ompd_bp_device_begin (void)
 
void ompd_bp_device_end (void)
 
ompd_rc_t ompd_initialize (ompd_word_t api_version, const ompd_callbacks_t *callbacks)
 
ompd_rc_t ompd_get_api_version (ompd_word_t *version)
 
ompd_rc_t ompd_get_version_string (const char **string)
 
ompd_rc_t ompd_finalize (void)
 
ompd_rc_t ompd_process_initialize (ompd_address_space_context_t *context, ompd_address_space_handle_t **handle)
 
ompd_rc_t ompd_device_initialize (ompd_address_space_handle_t *process_handle, ompd_address_space_context_t *device_context, ompd_device_t kind, ompd_size_t sizeof_id, void *id, ompd_address_space_handle_t **device_handle)
 
ompd_rc_t ompd_rel_address_space_handle (ompd_address_space_handle_t *handle)
 
ompd_rc_t ompd_get_omp_version (ompd_address_space_handle_t *address_space, ompd_word_t *omp_version)
 
ompd_rc_t ompd_get_omp_version_string (ompd_address_space_handle_t *address_space, const char **string)
 
ompd_rc_t ompd_get_thread_in_parallel (ompd_parallel_handle_t *parallel_handle, int thread_num, ompd_thread_handle_t **thread_handle)
 
ompd_rc_t ompd_get_thread_handle (ompd_address_space_handle_t *handle, ompd_thread_id_t kind, ompd_size_t sizeof_thread_id, const void *thread_id, ompd_thread_handle_t **thread_handle)
 
ompd_rc_t ompd_rel_thread_handle (ompd_thread_handle_t *thread_handle)
 
ompd_rc_t ompd_thread_handle_compare (ompd_thread_handle_t *thread_handle_1, ompd_thread_handle_t *thread_handle_2, int *cmp_value)
 
ompd_rc_t ompd_get_thread_id (ompd_thread_handle_t *thread_handle, ompd_thread_id_t kind, ompd_size_t sizeof_thread_id, void *thread_id)
 
ompd_rc_t ompd_get_curr_parallel_handle (ompd_thread_handle_t *thread_handle, ompd_parallel_handle_t **parallel_handle)
 
ompd_rc_t ompd_get_enclosing_parallel_handle (ompd_parallel_handle_t *parallel_handle, ompd_parallel_handle_t **enclosing_parallel_handle)
 
ompd_rc_t ompd_get_task_parallel_handle (ompd_task_handle_t *task_handle, ompd_parallel_handle_t **task_parallel_handle)
 
ompd_rc_t ompd_rel_parallel_handle (ompd_parallel_handle_t *parallel_handle)
 
ompd_rc_t ompd_parallel_handle_compare (ompd_parallel_handle_t *parallel_handle_1, ompd_parallel_handle_t *parallel_handle_2, int *cmp_value)
 
ompd_rc_t ompd_get_curr_task_handle (ompd_thread_handle_t *thread_handle, ompd_task_handle_t **task_handle)
 
ompd_rc_t ompd_get_generating_task_handle (ompd_task_handle_t *task_handle, ompd_task_handle_t **generating_task_handle)
 
ompd_rc_t ompd_get_scheduling_task_handle (ompd_task_handle_t *task_handle, ompd_task_handle_t **scheduling_task_handle)
 
ompd_rc_t ompd_get_task_in_parallel (ompd_parallel_handle_t *parallel_handle, int thread_num, ompd_task_handle_t **task_handle)
 
ompd_rc_t ompd_rel_task_handle (ompd_task_handle_t *task_handle)
 
ompd_rc_t ompd_task_handle_compare (ompd_task_handle_t *task_handle_1, ompd_task_handle_t *task_handle_2, int *cmp_value)
 
ompd_rc_t ompd_get_task_function (ompd_task_handle_t *task_handle, ompd_address_t *entry_point)
 
ompd_rc_t ompd_get_task_frame (ompd_task_handle_t *task_handle, ompd_frame_info_t *exit_frame, ompd_frame_info_t *enter_frame)
 
ompd_rc_t ompd_enumerate_states (ompd_address_space_handle_t *address_space_handle, ompd_word_t current_state, ompd_word_t *next_state, const char **next_state_name, ompd_word_t *more_enums)
 
ompd_rc_t ompd_get_state (ompd_thread_handle_t *thread_handle, ompd_word_t *state, ompd_wait_id_t *wait_id)
 
ompd_rc_t ompd_get_display_control_vars (ompd_address_space_handle_t *address_space_handle, const char *const **control_vars)
 
ompd_rc_t ompd_rel_display_control_vars (const char *const **control_vars)
 
ompd_rc_t ompd_enumerate_icvs (ompd_address_space_handle_t *handle, ompd_icv_id_t current, ompd_icv_id_t *next_id, const char **next_icv_name, ompd_scope_t *next_scope, int *more)
 
ompd_rc_t ompd_get_icv_from_scope (void *handle, ompd_scope_t scope, ompd_icv_id_t icv_id, ompd_word_t *icv_value)
 
ompd_rc_t ompd_get_icv_string_from_scope (void *handle, ompd_scope_t scope, ompd_icv_id_t icv_id, const char **icv_string)
 
ompd_rc_t ompd_get_tool_data (void *handle, ompd_scope_t scope, ompd_word_t *value, ompd_address_t *ptr)
 

Data Structure Documentation

◆ ompt_data_t

union ompt_data_t

Definition at line 567 of file omp-tools.h.

+ Collaboration diagram for ompt_data_t:
Data Fields
void * ptr
uint64_t value

◆ ompt_frame_t

struct ompt_frame_t

Definition at line 573 of file omp-tools.h.

+ Collaboration diagram for ompt_frame_t:
Data Fields
ompt_data_t enter_frame
int enter_frame_flags
ompt_data_t exit_frame
int exit_frame_flags

◆ ompt_start_tool_result_t

struct ompt_start_tool_result_t

Definition at line 603 of file omp-tools.h.

+ Collaboration diagram for ompt_start_tool_result_t:
Data Fields
ompt_finalize_t finalize
ompt_initialize_t initialize
ompt_data_t tool_data

◆ ompt_record_abstract_t

struct ompt_record_abstract_t

Definition at line 610 of file omp-tools.h.

+ Collaboration diagram for ompt_record_abstract_t:
Data Fields
ompt_device_time_t end_time
ompt_hwid_t hwid
ompt_record_native_t rclass
ompt_device_time_t start_time
const char * type

◆ ompt_dependence_t

struct ompt_dependence_t

Definition at line 619 of file omp-tools.h.

+ Collaboration diagram for ompt_dependence_t:
Data Fields
ompt_dependence_type_t dependence_type
ompt_data_t variable

◆ ompt_dispatch_chunk_t

struct ompt_dispatch_chunk_t

Definition at line 625 of file omp-tools.h.

+ Collaboration diagram for ompt_dispatch_chunk_t:
Data Fields
uint64_t iterations
uint64_t start

◆ ompt_record_thread_begin_t

struct ompt_record_thread_begin_t

Definition at line 719 of file omp-tools.h.

+ Collaboration diagram for ompt_record_thread_begin_t:
Data Fields
ompt_thread_t thread_type

◆ ompt_record_parallel_begin_t

struct ompt_record_parallel_begin_t

Definition at line 733 of file omp-tools.h.

+ Collaboration diagram for ompt_record_parallel_begin_t:
Data Fields
const void * codeptr_ra
ompt_id_t encountering_task_id
int flags
ompt_id_t parallel_id
unsigned int requested_parallelism

◆ ompt_record_parallel_end_t

struct ompt_record_parallel_end_t

Definition at line 747 of file omp-tools.h.

+ Collaboration diagram for ompt_record_parallel_end_t:
Data Fields
const void * codeptr_ra
ompt_id_t encountering_task_id
int flags
ompt_id_t parallel_id

◆ ompt_record_work_t

struct ompt_record_work_t

Definition at line 762 of file omp-tools.h.

+ Collaboration diagram for ompt_record_work_t:
Data Fields
const void * codeptr_ra
uint64_t count
ompt_scope_endpoint_t endpoint
ompt_id_t parallel_id
ompt_id_t task_id
ompt_work_t work_type

◆ ompt_record_dispatch_t

struct ompt_record_dispatch_t

Definition at line 777 of file omp-tools.h.

+ Collaboration diagram for ompt_record_dispatch_t:
Data Fields
ompt_data_t instance
ompt_dispatch_t kind
ompt_id_t parallel_id
ompt_id_t task_id

◆ ompt_record_task_create_t

struct ompt_record_task_create_t

Definition at line 792 of file omp-tools.h.

+ Collaboration diagram for ompt_record_task_create_t:
Data Fields
const void * codeptr_ra
ompt_id_t encountering_task_id
int flags
int has_dependences
ompt_id_t new_task_id

◆ ompt_record_dependences_t

struct ompt_record_dependences_t

Definition at line 805 of file omp-tools.h.

+ Collaboration diagram for ompt_record_dependences_t:
Data Fields
ompt_dependence_t dep
int ndeps
ompt_id_t task_id

◆ ompt_record_task_dependence_t

struct ompt_record_task_dependence_t

Definition at line 815 of file omp-tools.h.

+ Collaboration diagram for ompt_record_task_dependence_t:
Data Fields
ompt_id_t sink_task_id
ompt_id_t src_task_id

◆ ompt_record_task_schedule_t

struct ompt_record_task_schedule_t

Definition at line 825 of file omp-tools.h.

+ Collaboration diagram for ompt_record_task_schedule_t:
Data Fields
ompt_id_t next_task_id
ompt_id_t prior_task_id
ompt_task_status_t prior_task_status

◆ ompt_record_implicit_task_t

struct ompt_record_implicit_task_t

Definition at line 839 of file omp-tools.h.

+ Collaboration diagram for ompt_record_implicit_task_t:
Data Fields
unsigned int actual_parallelism
ompt_scope_endpoint_t endpoint
int flags
unsigned int index
ompt_id_t parallel_id
ompt_id_t task_id

◆ ompt_record_masked_t

struct ompt_record_masked_t

Definition at line 856 of file omp-tools.h.

+ Collaboration diagram for ompt_record_masked_t:
Data Fields
const void * codeptr_ra
ompt_scope_endpoint_t endpoint
ompt_id_t parallel_id
ompt_id_t task_id

◆ ompt_record_sync_region_t

struct ompt_record_sync_region_t

Definition at line 870 of file omp-tools.h.

+ Collaboration diagram for ompt_record_sync_region_t:
Data Fields
const void * codeptr_ra
ompt_scope_endpoint_t endpoint
ompt_sync_region_t kind
ompt_id_t parallel_id
ompt_id_t task_id

◆ ompt_record_mutex_acquire_t

struct ompt_record_mutex_acquire_t

Definition at line 885 of file omp-tools.h.

+ Collaboration diagram for ompt_record_mutex_acquire_t:
Data Fields
const void * codeptr_ra
unsigned int hint
unsigned int impl
ompt_mutex_t kind
ompt_wait_id_t wait_id

◆ ompt_record_mutex_t

struct ompt_record_mutex_t

Definition at line 898 of file omp-tools.h.

+ Collaboration diagram for ompt_record_mutex_t:
Data Fields
const void * codeptr_ra
ompt_mutex_t kind
ompt_wait_id_t wait_id

◆ ompt_record_nest_lock_t

struct ompt_record_nest_lock_t

Definition at line 909 of file omp-tools.h.

+ Collaboration diagram for ompt_record_nest_lock_t:
Data Fields
const void * codeptr_ra
ompt_scope_endpoint_t endpoint
ompt_wait_id_t wait_id

◆ ompt_record_flush_t

struct ompt_record_flush_t

Definition at line 918 of file omp-tools.h.

+ Collaboration diagram for ompt_record_flush_t:
Data Fields
const void * codeptr_ra

◆ ompt_record_cancel_t

struct ompt_record_cancel_t

Definition at line 925 of file omp-tools.h.

+ Collaboration diagram for ompt_record_cancel_t:
Data Fields
const void * codeptr_ra
int flags
ompt_id_t task_id

◆ ompt_record_target_data_op_t

struct ompt_record_target_data_op_t

Definition at line 973 of file omp-tools.h.

+ Collaboration diagram for ompt_record_target_data_op_t:
Data Fields
unsigned long bytes
const void * codeptr_ra
void * dest_addr
int dest_device_num
ompt_device_time_t end_time
ompt_id_t host_op_id
ompt_target_data_op_t optype
void * src_addr
int src_device_num

◆ ompt_record_target_t

struct ompt_record_target_t

Definition at line 1001 of file omp-tools.h.

+ Collaboration diagram for ompt_record_target_t:
Data Fields
const void * codeptr_ra
int device_num
ompt_scope_endpoint_t endpoint
ompt_target_t kind
ompt_id_t target_id
ompt_id_t task_id

◆ ompt_record_target_map_t

struct ompt_record_target_map_t

Definition at line 1027 of file omp-tools.h.

+ Collaboration diagram for ompt_record_target_map_t:
Data Fields
unsigned long * bytes
const void * codeptr_ra
void ** device_addr
void ** host_addr
unsigned int * mapping_flags
unsigned int nitems
ompt_id_t target_id

◆ ompt_record_target_kernel_t

struct ompt_record_target_kernel_t

Definition at line 1047 of file omp-tools.h.

+ Collaboration diagram for ompt_record_target_kernel_t:
Data Fields
ompt_device_time_t end_time
unsigned int granted_num_teams
ompt_id_t host_op_id
unsigned int requested_num_teams

◆ ompt_record_control_tool_t

struct ompt_record_control_tool_t

Definition at line 1060 of file omp-tools.h.

+ Collaboration diagram for ompt_record_control_tool_t:
Data Fields
const void * codeptr_ra
uint64_t command
uint64_t modifier

◆ ompt_record_error_t

struct ompt_record_error_t

Definition at line 1072 of file omp-tools.h.

+ Collaboration diagram for ompt_record_error_t:
Data Fields
const void * codeptr_ra
unsigned long length
const char * message
ompt_severity_t severity

◆ ompd_address_t

struct ompd_address_t

Definition at line 1080 of file omp-tools.h.

+ Collaboration diagram for ompd_address_t:
Data Fields
ompd_addr_t address
ompd_seg_t segment

◆ ompd_frame_info_t

struct ompd_frame_info_t

Definition at line 1086 of file omp-tools.h.

+ Collaboration diagram for ompd_frame_info_t:
Data Fields
ompd_address_t frame_address
ompd_word_t frame_flag

◆ ompd_device_type_sizes_t

struct ompd_device_type_sizes_t

Definition at line 1100 of file omp-tools.h.

+ Collaboration diagram for ompd_device_type_sizes_t:
Data Fields
uint8_t sizeof_char
uint8_t sizeof_int
uint8_t sizeof_long
uint8_t sizeof_long_long
uint8_t sizeof_pointer
uint8_t sizeof_short

◆ ompd_callbacks_t

struct ompd_callbacks_t

Definition at line 1157 of file omp-tools.h.

+ Collaboration diagram for ompd_callbacks_t:
Data Fields
ompd_callback_memory_alloc_fn_t alloc_memory
ompd_callback_device_host_fn_t device_to_host
ompd_callback_memory_free_fn_t free_memory
ompd_callback_get_thread_context_for_thread_id_fn_t get_thread_context_for_thread_id
ompd_callback_device_host_fn_t host_to_device
ompd_callback_print_string_fn_t print_string
ompd_callback_memory_read_fn_t read_memory
ompd_callback_memory_read_fn_t read_string
ompd_callback_sizeof_fn_t sizeof_type
ompd_callback_symbol_addr_fn_t symbol_addr_lookup
ompd_callback_memory_write_fn_t write_memory

◆ ompt_record_ompt_t

struct ompt_record_ompt_t

Definition at line 1347 of file omp-tools.h.

+ Collaboration diagram for ompt_record_ompt_t:
Data Fields
union ompt_record_ompt_t.record record
ompt_id_t target_id
ompt_id_t thread_id
ompt_device_time_t time
ompt_callbacks_t type

◆ ompt_record_ompt_t.record

union ompt_record_ompt_t.record

Definition at line 1353 of file omp-tools.h.

+ Collaboration diagram for ompt_record_ompt_t.record:
Data Fields
ompt_record_cancel_t cancel
ompt_record_control_tool_t control_tool
ompt_record_dependences_t dependences
ompt_record_dispatch_t dispatch
ompt_record_flush_t flush
ompt_record_implicit_task_t implicit_task
ompt_record_masked_t masked
ompt_record_mutex_t mutex
ompt_record_mutex_acquire_t mutex_acquire
ompt_record_nest_lock_t nest_lock
ompt_record_parallel_begin_t parallel_begin
ompt_record_parallel_end_t parallel_end
ompt_record_sync_region_t sync_region
ompt_record_target_t target
ompt_record_target_data_op_t target_data_op
ompt_record_target_kernel_t target_kernel
ompt_record_target_map_t target_map
ompt_record_task_create_t task_create
ompt_record_task_dependence_t task_dependence
ompt_record_task_schedule_t task_schedule
ompt_record_thread_begin_t thread_begin
ompt_record_work_t work

Macro Definition Documentation

◆ DEPRECATED_51

#define DEPRECATED_51

Definition at line 30 of file omp-tools.h.

◆ FOREACH_KMP_MUTEX_IMPL

#define FOREACH_KMP_MUTEX_IMPL (   macro)
Value:
macro(kmp_mutex_impl_none, 0) /* unknown implementation */ \
macro(kmp_mutex_impl_spin, 1) /* based on spin */ \
macro(kmp_mutex_impl_queuing, 2) /* based on some fair policy */ \
macro(kmp_mutex_impl_speculative, 3) /* based on HW-supported speculation */
@ kmp_mutex_impl_speculative
Definition omp-tools.h:219
@ kmp_mutex_impl_queuing
Definition omp-tools.h:219
@ kmp_mutex_impl_none
Definition omp-tools.h:219
@ kmp_mutex_impl_spin
Definition omp-tools.h:219

Definition at line 95 of file omp-tools.h.

216{
217#define kmp_mutex_impl_macro(impl, code) impl = code,
219#undef kmp_mutex_impl_macro
221
222/*****************************************************************************
223 * definitions generated from spec
224 *****************************************************************************/
225
226typedef enum ompt_callbacks_t
227{
267
268typedef enum ompt_record_t
269{
274
275typedef enum ompt_record_native_t
276{
280
281typedef enum ompt_set_result_t
282{
283 ompt_set_error = 0,
284 ompt_set_never = 1,
290
291typedef uint64_t ompt_id_t;
292
293typedef uint64_t ompt_device_time_t;
294
295typedef uint64_t ompt_buffer_cursor_t;
296
297typedef enum ompt_thread_t
298{
304
305typedef enum ompt_scope_endpoint_t
306{
308 ompt_scope_end = 2,
311
312typedef enum ompt_dispatch_t
313{
320
321typedef enum ompt_sync_region_t
322{
334
335typedef enum ompt_target_data_op_t
336{
348
349typedef enum ompt_work_t
350{
351 ompt_work_loop = 1,
358 ompt_work_scope = 8,
364
365typedef enum ompt_mutex_t
366{
367 ompt_mutex_lock = 1,
375
376typedef enum ompt_native_mon_flag_t
377{
382 ompt_native_driver = 0x10,
383 ompt_native_runtime = 0x20,
387
388typedef enum ompt_task_flag_t
389{
390 ompt_task_initial = 0x00000001,
391 ompt_task_implicit = 0x00000002,
392 ompt_task_explicit = 0x00000004,
393 ompt_task_target = 0x00000008,
394 ompt_task_taskwait = 0x00000010,
395 ompt_task_undeferred = 0x08000000,
396 ompt_task_untied = 0x10000000,
397 ompt_task_final = 0x20000000,
398 ompt_task_mergeable = 0x40000000,
399 ompt_task_merged = 0x80000000
401
402typedef enum ompt_task_status_t
403{
405 ompt_task_yield = 2,
413
414typedef enum ompt_target_t
415{
416 ompt_target = 1,
425
426typedef enum ompt_parallel_flag_t
427{
430 ompt_parallel_league = 0x40000000,
431 ompt_parallel_team = 0x80000000
433
434typedef enum ompt_target_map_flag_t
435{
443
444typedef enum ompt_dependence_type_t
445{
456
457typedef enum ompt_severity_t
458{
459 ompt_warning = 1,
460 ompt_fatal = 2
462
463typedef enum ompt_cancel_flag_t
464{
467 ompt_cancel_loop = 0x04,
473
474typedef uint64_t ompt_hwid_t;
475
476typedef uint64_t ompt_wait_id_t;
477
478typedef enum ompt_frame_flag_t
479{
480 ompt_frame_runtime = 0x00,
482 ompt_frame_cfa = 0x10,
486
487typedef enum ompt_state_t
488{
492
500
503
504 ompt_state_wait_mutex = 0x040,
505 ompt_state_wait_lock = 0x041,
509
513
514 ompt_state_idle = 0x100,
515 ompt_state_overhead = 0x101,
518
519typedef uint64_t (*ompt_get_unique_id_t)(void);
520
521typedef uint64_t ompd_size_t;
522
523typedef uint64_t ompd_wait_id_t;
524
525typedef uint64_t ompd_addr_t;
526typedef int64_t ompd_word_t;
527typedef uint64_t ompd_seg_t;
528
529typedef uint64_t ompd_device_t;
530
531typedef uint64_t ompd_thread_id_t;
532
533typedef enum ompd_scope_t
534{
542
543typedef uint64_t ompd_icv_id_t;
544
545typedef enum ompd_rc_t
546{
547 ompd_rc_ok = 0,
551 ompd_rc_error = 4,
557 ompd_rc_nomem = 10,
560} ompd_rc_t;
561
562typedef void (*ompt_interface_fn_t)(void);
563
564typedef ompt_interface_fn_t (*ompt_function_lookup_t)(const char* interface_function_name);
565
566typedef union ompt_data_t
567{
568 uint64_t value;
569 void* ptr;
571
572typedef struct ompt_frame_t
573{
579
580typedef void (*ompt_callback_t)(void);
581
582typedef void ompt_device_t;
583
584typedef void ompt_buffer_t;
585
586typedef void (*ompt_callback_buffer_request_t)(int device_num,
587 ompt_buffer_t** buffer,
588 size_t* bytes);
589
590typedef void (*ompt_callback_buffer_complete_t)(int device_num,
591 ompt_buffer_t* buffer,
592 size_t bytes,
594 int buffer_owned);
595
596typedef void (*ompt_finalize_t)(ompt_data_t* tool_data);
597
598typedef int (*ompt_initialize_t)(ompt_function_lookup_t lookup,
599 int initial_device_num,
600 ompt_data_t* tool_data);
601
602typedef struct ompt_start_tool_result_t
603{
608
609typedef struct ompt_record_abstract_t
610{
612 const char* type;
617
618typedef struct ompt_dependence_t
619{
623
624typedef struct ompt_dispatch_chunk_t
625{
626 uint64_t start;
627 uint64_t iterations;
629
630typedef int (*ompt_enumerate_states_t)(int current_state,
631 int* next_state,
632 const char** next_state_name);
633
634typedef int (*ompt_enumerate_mutex_impls_t)(int current_impl,
635 int* next_impl,
636 const char** next_impl_name);
637
639
640typedef int (*ompt_get_callback_t)(ompt_callbacks_t event, ompt_callback_t* callback);
641
642typedef ompt_data_t* (*ompt_get_thread_data_t)(void);
643
644typedef int (*ompt_get_num_procs_t)(void);
645
646typedef int (*ompt_get_num_places_t)(void);
647
648typedef int (*ompt_get_place_proc_ids_t)(int place_num, int ids_size, int* ids);
649
650typedef int (*ompt_get_place_num_t)(void);
651
652typedef int (*ompt_get_partition_place_nums_t)(int place_nums_size, int* place_nums);
653
654typedef int (*ompt_get_proc_id_t)(void);
655
656typedef int (*ompt_get_state_t)(ompt_wait_id_t* wait_id);
657
658typedef int (*ompt_get_parallel_info_t)(int ancestor_level,
659 ompt_data_t** parallel_data,
660 int* team_size);
661
662typedef int (*ompt_get_task_info_t)(int ancestor_level,
663 int* flags,
664 ompt_data_t** task_data,
665 ompt_frame_t** task_frame,
666 ompt_data_t** parallel_data,
667 int* thread_num);
668
669typedef int (*ompt_get_task_memory_t)(void** addr, size_t* size, int block);
670
671typedef int (*ompt_get_target_info_t)(uint64_t* device_num,
672 ompt_id_t* target_id,
673 ompt_id_t* host_op_id);
674
675typedef int (*ompt_get_num_devices_t)(void);
676
677typedef void (*ompt_finalize_tool_t)(void);
678
679typedef int (*ompt_get_device_num_procs_t)(ompt_device_t* device);
680
682
683typedef double (*ompt_translate_time_t)(ompt_device_t* device, ompt_device_time_t time);
684
686 unsigned int enable,
687 unsigned int etype);
688
689typedef ompt_set_result_t (*ompt_set_trace_native_t)(ompt_device_t* device, int enable, int flags);
690
691typedef int (*ompt_start_trace_t)(ompt_device_t* device,
694
695typedef int (*ompt_pause_trace_t)(ompt_device_t* device, int begin_pause);
696
697typedef int (*ompt_flush_trace_t)(ompt_device_t* device);
698
699typedef int (*ompt_stop_trace_t)(ompt_device_t* device);
700
701typedef int (*ompt_advance_buffer_cursor_t)(ompt_device_t* device,
702 ompt_buffer_t* buffer,
703 size_t size,
704 ompt_buffer_cursor_t current,
706
708 ompt_buffer_cursor_t current);
709
710typedef void* (*ompt_get_record_native_t)(ompt_buffer_t* buffer,
711 ompt_buffer_cursor_t current,
712 ompt_id_t* host_op_id);
713
714typedef ompt_record_abstract_t* (*ompt_get_record_abstract_t)(void* native_record);
715
716typedef void (*ompt_callback_thread_begin_t)(ompt_thread_t thread_type, ompt_data_t* thread_data);
717
718typedef struct ompt_record_thread_begin_t
719{
722
723typedef void (*ompt_callback_thread_end_t)(ompt_data_t* thread_data);
724
725typedef void (*ompt_callback_parallel_begin_t)(ompt_data_t* encountering_task_data,
726 const ompt_frame_t* encountering_task_frame,
727 ompt_data_t* parallel_data,
728 unsigned int requested_parallelism,
729 int flags,
730 const void* codeptr_ra);
731
732typedef struct ompt_record_parallel_begin_t
733{
736 unsigned int requested_parallelism;
737 int flags;
738 const void* codeptr_ra;
740
741typedef void (*ompt_callback_parallel_end_t)(ompt_data_t* parallel_data,
742 ompt_data_t* encountering_task_data,
743 int flags,
744 const void* codeptr_ra);
745
746typedef struct ompt_record_parallel_end_t
747{
750 int flags;
751 const void* codeptr_ra;
753
754typedef void (*ompt_callback_work_t)(ompt_work_t work_type,
755 ompt_scope_endpoint_t endpoint,
756 ompt_data_t* parallel_data,
757 ompt_data_t* task_data,
758 uint64_t count,
759 const void* codeptr_ra);
760
761typedef struct ompt_record_work_t
762{
767 uint64_t count;
768 const void* codeptr_ra;
770
771typedef void (*ompt_callback_dispatch_t)(ompt_data_t* parallel_data,
772 ompt_data_t* task_data,
773 ompt_dispatch_t kind,
774 ompt_data_t instance);
775
776typedef struct ompt_record_dispatch_t
777{
783
784typedef void (*ompt_callback_task_create_t)(ompt_data_t* encountering_task_data,
785 const ompt_frame_t* encountering_task_frame,
786 ompt_data_t* new_task_data,
787 int flags,
788 int has_dependences,
789 const void* codeptr_ra);
790
791typedef struct ompt_record_task_create_t
792{
795 int flags;
796 int has_dependences;
797 const void* codeptr_ra;
799
800typedef void (*ompt_callback_dependences_t)(ompt_data_t* task_data,
801 const ompt_dependence_t* deps,
802 int ndeps);
803
804typedef struct ompt_record_dependences_t
805{
808 int ndeps;
810
811typedef void (*ompt_callback_task_dependence_t)(ompt_data_t* src_task_data,
812 ompt_data_t* sink_task_data);
813
815{
819
820typedef void (*ompt_callback_task_schedule_t)(ompt_data_t* prior_task_data,
821 ompt_task_status_t prior_task_status,
822 ompt_data_t* next_task_data);
823
824typedef struct ompt_record_task_schedule_t
825{
830
832 ompt_data_t* parallel_data,
833 ompt_data_t* task_data,
834 unsigned int actual_parallelism,
835 unsigned int index,
836 int flags);
837
838typedef struct ompt_record_implicit_task_t
839{
843 unsigned int actual_parallelism;
844 unsigned int index;
845 int flags;
847
848typedef void (*ompt_callback_masked_t)(ompt_scope_endpoint_t endpoint,
849 ompt_data_t* parallel_data,
850 ompt_data_t* task_data,
851 const void* codeptr_ra);
852
854
855typedef struct ompt_record_masked_t
856{
860 const void* codeptr_ra;
862
864 ompt_scope_endpoint_t endpoint,
865 ompt_data_t* parallel_data,
866 ompt_data_t* task_data,
867 const void* codeptr_ra);
868
869typedef struct ompt_record_sync_region_t
870{
875 const void* codeptr_ra;
877
879 unsigned int hint,
880 unsigned int impl,
881 ompt_wait_id_t wait_id,
882 const void* codeptr_ra);
883
884typedef struct ompt_record_mutex_acquire_t
885{
887 unsigned int hint;
888 unsigned int impl;
890 const void* codeptr_ra;
892
893typedef void (*ompt_callback_mutex_t)(ompt_mutex_t kind,
894 ompt_wait_id_t wait_id,
895 const void* codeptr_ra);
896
897typedef struct ompt_record_mutex_t
898{
901 const void* codeptr_ra;
903
904typedef void (*ompt_callback_nest_lock_t)(ompt_scope_endpoint_t endpoint,
905 ompt_wait_id_t wait_id,
906 const void* codeptr_ra);
907
908typedef struct ompt_record_nest_lock_t
909{
912 const void* codeptr_ra;
914
915typedef void (*ompt_callback_flush_t)(ompt_data_t* thread_data, const void* codeptr_ra);
916
917typedef struct ompt_record_flush_t
918{
919 const void* codeptr_ra;
921
922typedef void (*ompt_callback_cancel_t)(ompt_data_t* task_data, int flags, const void* codeptr_ra);
923
924typedef struct ompt_record_cancel_t
925{
927 int flags;
928 const void* codeptr_ra;
930
931typedef void (*ompt_callback_device_initialize_t)(int device_num,
932 const char* type,
933 ompt_device_t* device,
935 const char* documentation);
936
937typedef void (*ompt_callback_device_finalize_t)(int device_num);
938
939typedef void (*ompt_callback_device_load_t)(int device_num,
940 const char* filename,
941 int64_t offset_in_file,
942 void* vma_in_file,
943 size_t bytes,
944 void* host_addr,
945 void* device_addr,
946 uint64_t module_id);
947
948typedef void (*ompt_callback_device_unload_t)(int device_num, uint64_t module_id);
949
951 ompt_data_t* target_task_data,
952 ompt_data_t* target_data,
953 ompt_id_t* host_op_id,
955 void* src_addr,
956 int src_device_num,
957 void* dest_addr,
958 int dest_device_num,
959 size_t bytes,
960 const void* codeptr_ra);
961
962typedef void (*ompt_callback_target_data_op_t)(ompt_id_t target_id,
963 ompt_id_t host_op_id,
965 void* src_addr,
966 int src_device_num,
967 void* dest_addr,
968 int dest_device_num,
969 size_t bytes,
970 const void* codeptr_ra);
971
972typedef struct ompt_record_target_data_op_t
973{
976 void* src_addr;
977 int src_device_num;
978 void* dest_addr;
979 int dest_device_num;
980 size_t bytes;
982 const void* codeptr_ra;
984
985typedef void (*ompt_callback_target_emi_t)(ompt_target_t kind,
986 ompt_scope_endpoint_t endpoint,
987 int device_num,
988 ompt_data_t* task_data,
989 ompt_data_t* target_task_data,
990 ompt_data_t* target_data,
991 const void* codeptr_ra);
992
993typedef void (*ompt_callback_target_t)(ompt_target_t kind,
994 ompt_scope_endpoint_t endpoint,
995 int device_num,
996 ompt_data_t* task_data,
997 ompt_id_t target_id,
998 const void* codeptr_ra);
999
1000typedef struct ompt_record_target_t
1001{
1004 int device_num;
1007 const void* codeptr_ra;
1009
1010typedef void (*ompt_callback_target_map_emi_t)(ompt_data_t* target_data,
1011 unsigned int nitems,
1012 void** host_addr,
1013 void** device_addr,
1014 size_t* bytes,
1015 unsigned int* mapping_flags,
1016 const void* codeptr_ra);
1017
1018typedef void (*ompt_callback_target_map_t)(ompt_id_t target_id,
1019 unsigned int nitems,
1020 void** host_addr,
1021 void** device_addr,
1022 size_t* bytes,
1023 unsigned int* mapping_flags,
1024 const void* codeptr_ra);
1025
1026typedef struct ompt_record_target_map_t
1027{
1029 unsigned int nitems;
1030 void** host_addr;
1031 void** device_addr;
1032 size_t* bytes;
1033 unsigned int* mapping_flags;
1034 const void* codeptr_ra;
1036
1038 ompt_data_t* target_data,
1039 ompt_id_t* host_op_id,
1040 unsigned int requested_num_teams);
1041
1042typedef void (*ompt_callback_target_submit_t)(ompt_id_t target_id,
1043 ompt_id_t host_op_id,
1044 unsigned int requested_num_teams);
1045
1046typedef struct ompt_record_target_kernel_t
1047{
1049 unsigned int requested_num_teams;
1050 unsigned int granted_num_teams;
1053
1054typedef int (*ompt_callback_control_tool_t)(uint64_t command,
1055 uint64_t modifier,
1056 void* arg,
1057 const void* codeptr_ra);
1058
1059typedef struct ompt_record_control_tool_t
1060{
1061 uint64_t command;
1062 uint64_t modifier;
1063 const void* codeptr_ra;
1065
1066typedef void (*ompt_callback_error_t)(ompt_severity_t severity,
1067 const char* message,
1068 size_t length,
1069 const void* codeptr_ra);
1070
1071typedef struct ompt_record_error_t
1072{
1074 const char* message;
1075 size_t length;
1076 const void* codeptr_ra;
1078
1079typedef struct ompd_address_t
1080{
1084
1085typedef struct ompd_frame_info_t
1086{
1090
1091typedef struct _ompd_aspace_handle ompd_address_space_handle_t;
1092typedef struct _ompd_thread_handle ompd_thread_handle_t;
1093typedef struct _ompd_parallel_handle ompd_parallel_handle_t;
1094typedef struct _ompd_task_handle ompd_task_handle_t;
1095
1096typedef struct _ompd_aspace_cont ompd_address_space_context_t;
1097typedef struct _ompd_thread_cont ompd_thread_context_t;
1098
1099typedef struct ompd_device_type_sizes_t
1100{
1101 uint8_t sizeof_char;
1102 uint8_t sizeof_short;
1103 uint8_t sizeof_int;
1104 uint8_t sizeof_long;
1105 uint8_t sizeof_long_long;
1106 uint8_t sizeof_pointer;
1108
1109void
1111
1112typedef ompd_rc_t (*ompd_callback_memory_alloc_fn_t)(ompd_size_t nbytes, void** ptr);
1113
1114typedef ompd_rc_t (*ompd_callback_memory_free_fn_t)(void* ptr);
1115
1117 ompd_address_space_context_t* address_space_context,
1118 ompd_thread_id_t kind,
1119 ompd_size_t sizeof_thread_id,
1120 const void* thread_id,
1121 ompd_thread_context_t** thread_context);
1122
1123typedef ompd_rc_t (*ompd_callback_sizeof_fn_t)(ompd_address_space_context_t* address_space_context,
1125
1127 ompd_address_space_context_t* address_space_context,
1128 ompd_thread_context_t* thread_context,
1129 const char* symbol_name,
1130 ompd_address_t* symbol_addr,
1131 const char* file_name);
1132
1134 ompd_address_space_context_t* address_space_context,
1135 ompd_thread_context_t* thread_context,
1136 const ompd_address_t* addr,
1137 ompd_size_t nbytes,
1138 void* buffer);
1139
1141 ompd_address_space_context_t* address_space_context,
1142 ompd_thread_context_t* thread_context,
1143 const ompd_address_t* addr,
1144 ompd_size_t nbytes,
1145 const void* buffer);
1146
1148 ompd_address_space_context_t* address_space_context,
1149 const void* input,
1150 ompd_size_t unit_size,
1151 ompd_size_t count,
1152 void* output);
1153
1154typedef ompd_rc_t (*ompd_callback_print_string_fn_t)(const char* string, int category);
1155
1156typedef struct ompd_callbacks_t
1157{
1170
1171void
1173
1174void
1176
1177void
1178ompd_bp_task_begin(void);
1179
1180void
1181ompd_bp_task_end(void);
1182
1183void
1185
1186void
1187ompd_bp_thread_end(void);
1188
1189void
1191
1192void
1193ompd_bp_device_end(void);
1194
1196ompd_initialize(ompd_word_t api_version, const ompd_callbacks_t* callbacks);
1197
1200
1202ompd_get_version_string(const char** string);
1203
1205ompd_finalize(void);
1206
1210
1213 ompd_address_space_context_t* device_context,
1214 ompd_device_t kind,
1215 ompd_size_t sizeof_id,
1216 void* id,
1217 ompd_address_space_handle_t** device_handle);
1218
1221
1224
1226ompd_get_omp_version_string(ompd_address_space_handle_t* address_space, const char** string);
1227
1230 int thread_num,
1231 ompd_thread_handle_t** thread_handle);
1232
1235 ompd_thread_id_t kind,
1236 ompd_size_t sizeof_thread_id,
1237 const void* thread_id,
1238 ompd_thread_handle_t** thread_handle);
1239
1242
1245 ompd_thread_handle_t* thread_handle_2,
1246 int* cmp_value);
1247
1250 ompd_thread_id_t kind,
1251 ompd_size_t sizeof_thread_id,
1252 void* thread_id);
1253
1256 ompd_parallel_handle_t** parallel_handle);
1257
1260 ompd_parallel_handle_t** enclosing_parallel_handle);
1261
1264 ompd_parallel_handle_t** task_parallel_handle);
1265
1268
1271 ompd_parallel_handle_t* parallel_handle_2,
1272 int* cmp_value);
1273
1276
1279 ompd_task_handle_t** generating_task_handle);
1280
1283 ompd_task_handle_t** scheduling_task_handle);
1284
1287 int thread_num,
1288 ompd_task_handle_t** task_handle);
1289
1292
1295 ompd_task_handle_t* task_handle_2,
1296 int* cmp_value);
1297
1299ompd_get_task_function(ompd_task_handle_t* task_handle, ompd_address_t* entry_point);
1300
1303 ompd_frame_info_t* exit_frame,
1304 ompd_frame_info_t* enter_frame);
1305
1308 ompd_word_t current_state,
1309 ompd_word_t* next_state,
1310 const char** next_state_name,
1311 ompd_word_t* more_enums);
1312
1314ompd_get_state(ompd_thread_handle_t* thread_handle, ompd_word_t* state, ompd_wait_id_t* wait_id);
1315
1318 const char* const** control_vars);
1319
1321ompd_rel_display_control_vars(const char* const** control_vars);
1322
1325 ompd_icv_id_t current,
1326 ompd_icv_id_t* next_id,
1327 const char** next_icv_name,
1328 ompd_scope_t* next_scope,
1329 int* more);
1330
1332ompd_get_icv_from_scope(void* handle,
1333 ompd_scope_t scope,
1334 ompd_icv_id_t icv_id,
1335 ompd_word_t* icv_value);
1336
1339 ompd_scope_t scope,
1340 ompd_icv_id_t icv_id,
1341 const char** icv_string);
1342
1344ompd_get_tool_data(void* handle, ompd_scope_t scope, ompd_word_t* value, ompd_address_t* ptr);
1345
1346typedef struct ompt_record_ompt_t
1347{
1352 union
1353 {
1354 ompt_record_thread_begin_t thread_begin;
1355 ompt_record_parallel_begin_t parallel_begin;
1356 ompt_record_parallel_end_t parallel_end;
1357 ompt_record_work_t work;
1358 ompt_record_dispatch_t dispatch;
1359 ompt_record_task_create_t task_create;
1360 ompt_record_dependences_t dependences;
1361 ompt_record_task_dependence_t task_dependence;
1362 ompt_record_task_schedule_t task_schedule;
1363 ompt_record_implicit_task_t implicit_task;
1364 ompt_record_masked_t masked;
1365 ompt_record_sync_region_t sync_region;
1366 ompt_record_mutex_acquire_t mutex_acquire;
1367 ompt_record_mutex_t mutex;
1368 ompt_record_nest_lock_t nest_lock;
1369 ompt_record_flush_t flush;
1370 ompt_record_cancel_t cancel;
1371 ompt_record_target_t target;
1372 ompt_record_target_data_op_t target_data_op;
1373 ompt_record_target_map_t target_map;
1374 ompt_record_target_kernel_t target_kernel;
1375 ompt_record_control_tool_t control_tool;
1376 } record;
1378
1379typedef ompt_record_ompt_t* (*ompt_get_record_ompt_t)(ompt_buffer_t* buffer,
1380 ompt_buffer_cursor_t current);
1381
1382#define ompt_id_none 0
1383#define ompt_data_none \
1384 { \
1385 0 \
1386 }
1387#define ompt_time_none 0
1388#define ompt_hwid_none 0
1389#define ompt_addr_none ~0
1390#define ompt_mutex_impl_none 0
1391#define ompt_wait_id_none 0
1392
1393#define ompd_segment_none 0
1394
1395#endif /* __OMPT__ */
int(* ompt_enumerate_states_t)(int current_state, int *next_state, const char **next_state_name)
Definition omp-tools.h:631
ompt_set_result_t(* ompt_set_callback_t)(ompt_callbacks_t event, ompt_callback_t callback)
Definition omp-tools.h:639
void(* ompt_callback_implicit_task_t)(ompt_scope_endpoint_t endpoint, ompt_data_t *parallel_data, ompt_data_t *task_data, unsigned int actual_parallelism, unsigned int index, int flags)
Definition omp-tools.h:832
ompt_task_status_t
Definition omp-tools.h:404
@ ompt_task_detach
Definition omp-tools.h:408
@ ompt_task_yield
Definition omp-tools.h:406
@ ompt_task_switch
Definition omp-tools.h:411
@ ompt_task_early_fulfill
Definition omp-tools.h:409
@ ompt_task_complete
Definition omp-tools.h:405
@ ompt_task_late_fulfill
Definition omp-tools.h:410
@ ompt_taskwait_complete
Definition omp-tools.h:412
@ ompt_task_cancel
Definition omp-tools.h:407
void(* ompt_interface_fn_t)(void)
Definition omp-tools.h:563
ompt_thread_t thread_type
Definition omp-tools.h:721
ompd_rc_t ompd_get_task_frame(ompd_task_handle_t *task_handle, ompd_frame_info_t *exit_frame, ompd_frame_info_t *enter_frame)
ompt_device_time_t start_time
Definition omp-tools.h:614
ompd_rc_t ompd_enumerate_states(ompd_address_space_handle_t *address_space_handle, ompd_word_t current_state, ompd_word_t *next_state, const char **next_state_name, ompd_word_t *more_enums)
ompt_data_t variable
Definition omp-tools.h:621
uint64_t ompd_wait_id_t
Definition omp-tools.h:524
ompd_rc_t ompd_get_icv_string_from_scope(void *handle, ompd_scope_t scope, ompd_icv_id_t icv_id, const char **icv_string)
void ompd_bp_task_end(void)
const void * codeptr_ra
Definition omp-tools.h:1008
ompd_callback_memory_alloc_fn_t alloc_memory
Definition omp-tools.h:1159
ompd_rc_t(* ompd_callback_memory_read_fn_t)(ompd_address_space_context_t *address_space_context, ompd_thread_context_t *thread_context, const ompd_address_t *addr, ompd_size_t nbytes, void *buffer)
Definition omp-tools.h:1134
ompd_rc_t ompd_get_curr_parallel_handle(ompd_thread_handle_t *thread_handle, ompd_parallel_handle_t **parallel_handle)
ompd_rc_t(* ompd_callback_device_host_fn_t)(ompd_address_space_context_t *address_space_context, const void *input, ompd_size_t unit_size, ompd_size_t count, void *output)
Definition omp-tools.h:1148
int enter_frame_flags
Definition omp-tools.h:578
ompd_callback_memory_read_fn_t read_memory
Definition omp-tools.h:1164
ompd_rc_t ompd_device_initialize(ompd_address_space_handle_t *process_handle, ompd_address_space_context_t *device_context, ompd_device_t kind, ompd_size_t sizeof_id, void *id, ompd_address_space_handle_t **device_handle)
ompd_callback_memory_write_fn_t write_memory
Definition omp-tools.h:1165
ompd_rc_t ompd_parallel_handle_compare(ompd_parallel_handle_t *parallel_handle_1, ompd_parallel_handle_t *parallel_handle_2, int *cmp_value)
ompt_finalize_t finalize
Definition omp-tools.h:606
void(* ompt_callback_task_schedule_t)(ompt_data_t *prior_task_data, ompt_task_status_t prior_task_status, ompt_data_t *next_task_data)
Definition omp-tools.h:821
ompt_mutex_t kind
Definition omp-tools.h:900
void(* ompt_callback_task_create_t)(ompt_data_t *encountering_task_data, const ompt_frame_t *encountering_task_frame, ompt_data_t *new_task_data, int flags, int has_dependences, const void *codeptr_ra)
Definition omp-tools.h:785
ompd_callback_sizeof_fn_t sizeof_type
Definition omp-tools.h:1162
int(* ompt_get_place_proc_ids_t)(int place_num, int ids_size, int *ids)
Definition omp-tools.h:649
#define FOREACH_KMP_MUTEX_IMPL(macro)
Definition omp-tools.h:95
ompd_rc_t ompd_get_thread_id(ompd_thread_handle_t *thread_handle, ompd_thread_id_t kind, ompd_size_t sizeof_thread_id, void *thread_id)
void(* ompt_callback_buffer_complete_t)(int device_num, ompt_buffer_t *buffer, unsigned long bytes, ompt_buffer_cursor_t begin, int buffer_owned)
Definition omp-tools.h:591
void(* ompt_callback_thread_end_t)(ompt_data_t *thread_data)
Definition omp-tools.h:724
ompt_scope_endpoint_t endpoint
Definition omp-tools.h:911
void ompd_bp_device_begin(void)
void(* ompt_callback_device_unload_t)(int device_num, uint64_t module_id)
Definition omp-tools.h:949
ompt_id_t task_id
Definition omp-tools.h:767
void ompd_bp_thread_begin(void)
struct _ompd_thread_cont ompd_thread_context_t
Definition omp-tools.h:1098
void(* ompt_callback_t)(void)
Definition omp-tools.h:581
ompt_initialize_t initialize
Definition omp-tools.h:605
int(* ompt_get_partition_place_nums_t)(int place_nums_size, int *place_nums)
Definition omp-tools.h:653
ompd_rc_t ompd_get_generating_task_handle(ompd_task_handle_t *task_handle, ompd_task_handle_t **generating_task_handle)
const void * codeptr_ra
Definition omp-tools.h:929
ompt_record_native_t rclass
Definition omp-tools.h:612
ompd_callback_memory_free_fn_t free_memory
Definition omp-tools.h:1160
ompt_severity_t
Definition omp-tools.h:459
@ ompt_fatal
Definition omp-tools.h:461
@ ompt_warning
Definition omp-tools.h:460
void(* ompt_callback_error_t)(ompt_severity_t severity, const char *message, unsigned long length, const void *codeptr_ra)
Definition omp-tools.h:1067
#define kmp_mutex_impl_macro(impl, code)
Definition omp-tools.h:218
double(* ompt_translate_time_t)(ompt_device_t *device, ompt_device_time_t time)
Definition omp-tools.h:684
ompt_interface_fn_t(* ompt_function_lookup_t)(const char *interface_function_name)
Definition omp-tools.h:565
int(* ompt_get_num_devices_t)(void)
Definition omp-tools.h:676
ompd_address_t frame_address
Definition omp-tools.h:1088
void * ptr
Definition omp-tools.h:570
int exit_frame_flags
Definition omp-tools.h:577
void(* ompt_callback_target_data_op_emi_t)(ompt_scope_endpoint_t endpoint, ompt_data_t *target_task_data, ompt_data_t *target_data, ompt_id_t *host_op_id, ompt_target_data_op_t optype, void *src_addr, int src_device_num, void *dest_addr, int dest_device_num, unsigned long bytes, const void *codeptr_ra)
Definition omp-tools.h:951
uint64_t ompt_device_time_t
Definition omp-tools.h:294
ompt_work_t work_type
Definition omp-tools.h:764
ompt_cancel_flag_t
Definition omp-tools.h:465
@ ompt_cancel_sections
Definition omp-tools.h:467
@ ompt_cancel_activated
Definition omp-tools.h:470
@ ompt_cancel_loop
Definition omp-tools.h:468
@ ompt_cancel_discarded_task
Definition omp-tools.h:472
@ ompt_cancel_detected
Definition omp-tools.h:471
@ ompt_cancel_parallel
Definition omp-tools.h:466
@ ompt_cancel_taskgroup
Definition omp-tools.h:469
void(* ompt_callback_target_data_op_t)(ompt_id_t target_id, ompt_id_t host_op_id, ompt_target_data_op_t optype, void *src_addr, int src_device_num, void *dest_addr, int dest_device_num, unsigned long bytes, const void *codeptr_ra)
Definition omp-tools.h:963
ompt_mutex_t
Definition omp-tools.h:367
@ ompt_mutex_critical
Definition omp-tools.h:372
@ ompt_mutex_test_lock
Definition omp-tools.h:369
@ ompt_mutex_lock
Definition omp-tools.h:368
@ ompt_mutex_ordered
Definition omp-tools.h:374
@ ompt_mutex_atomic
Definition omp-tools.h:373
@ ompt_mutex_test_nest_lock
Definition omp-tools.h:371
@ ompt_mutex_nest_lock
Definition omp-tools.h:370
ompt_dependence_type_t
Definition omp-tools.h:446
@ ompt_dependence_type_in
Definition omp-tools.h:447
@ ompt_dependence_type_out
Definition omp-tools.h:448
@ ompt_dependence_type_inout_all_memory
Definition omp-tools.h:455
@ ompt_dependence_type_sink
Definition omp-tools.h:452
@ ompt_dependence_type_inoutset
Definition omp-tools.h:453
@ ompt_dependence_type_out_all_memory
Definition omp-tools.h:454
@ ompt_dependence_type_source
Definition omp-tools.h:451
@ ompt_dependence_type_mutexinoutset
Definition omp-tools.h:450
@ ompt_dependence_type_inout
Definition omp-tools.h:449
ompd_rc_t ompd_process_initialize(ompd_address_space_context_t *context, ompd_address_space_handle_t **handle)
void(* ompt_callback_flush_t)(ompt_data_t *thread_data, const void *codeptr_ra)
Definition omp-tools.h:916
struct _ompd_thread_handle ompd_thread_handle_t
Definition omp-tools.h:1093
void ompd_dll_locations_valid(void)
ompt_severity_t severity
Definition omp-tools.h:1074
void(* ompt_callback_target_submit_t)(ompt_id_t target_id, ompt_id_t host_op_id, unsigned int requested_num_teams)
Definition omp-tools.h:1043
ompd_rc_t ompd_get_thread_handle(ompd_address_space_handle_t *handle, ompd_thread_id_t kind, ompd_size_t sizeof_thread_id, const void *thread_id, ompd_thread_handle_t **thread_handle)
ompt_parallel_flag_t
Definition omp-tools.h:428
@ ompt_parallel_invoker_runtime
Definition omp-tools.h:430
@ ompt_parallel_team
Definition omp-tools.h:432
@ ompt_parallel_invoker_program
Definition omp-tools.h:429
@ ompt_parallel_league
Definition omp-tools.h:431
const void * codeptr_ra
Definition omp-tools.h:920
ompt_id_t thread_id
Definition omp-tools.h:1351
ompt_target_map_flag_t
Definition omp-tools.h:436
@ ompt_target_map_flag_implicit
Definition omp-tools.h:442
@ ompt_target_map_flag_to
Definition omp-tools.h:437
@ ompt_target_map_flag_alloc
Definition omp-tools.h:439
@ ompt_target_map_flag_delete
Definition omp-tools.h:441
@ ompt_target_map_flag_from
Definition omp-tools.h:438
@ ompt_target_map_flag_release
Definition omp-tools.h:440
ompd_rc_t ompd_get_version_string(const char **string)
void(* ompt_finalize_tool_t)(void)
Definition omp-tools.h:678
ompt_device_time_t end_time
Definition omp-tools.h:615
ompt_set_result_t(* ompt_set_trace_ompt_t)(ompt_device_t *device, unsigned int enable, unsigned int etype)
Definition omp-tools.h:686
ompd_rc_t ompd_rel_parallel_handle(ompd_parallel_handle_t *parallel_handle)
ompt_dispatch_t kind
Definition omp-tools.h:781
void ompd_bp_parallel_end(void)
ompt_task_status_t prior_task_status
Definition omp-tools.h:828
ompt_id_t parallel_id
Definition omp-tools.h:859
int(* ompt_get_place_num_t)(void)
Definition omp-tools.h:651
struct _ompd_task_handle ompd_task_handle_t
Definition omp-tools.h:1095
unsigned int * mapping_flags
Definition omp-tools.h:1034
ompd_rc_t ompd_rel_display_control_vars(const char *const **control_vars)
void ompd_bp_thread_end(void)
int(* ompt_pause_trace_t)(ompt_device_t *device, int begin_pause)
Definition omp-tools.h:696
ompd_rc_t(* ompd_callback_memory_free_fn_t)(void *ptr)
Definition omp-tools.h:1115
void(* ompt_callback_mutex_acquire_t)(ompt_mutex_t kind, unsigned int hint, unsigned int impl, ompt_wait_id_t wait_id, const void *codeptr_ra)
Definition omp-tools.h:879
unsigned int requested_parallelism
Definition omp-tools.h:737
int(* ompt_get_num_procs_t)(void)
Definition omp-tools.h:645
int(* ompt_get_device_num_procs_t)(ompt_device_t *device)
Definition omp-tools.h:680
ompd_rc_t ompd_rel_task_handle(ompd_task_handle_t *task_handle)
int(* ompt_enumerate_mutex_impls_t)(int current_impl, int *next_impl, const char **next_impl_name)
Definition omp-tools.h:635
void(* ompt_finalize_t)(ompt_data_t *tool_data)
Definition omp-tools.h:597
uint64_t ompd_seg_t
Definition omp-tools.h:528
void(* ompt_callback_device_finalize_t)(int device_num)
Definition omp-tools.h:938
ompd_rc_t ompd_get_task_function(ompd_task_handle_t *task_handle, ompd_address_t *entry_point)
ompd_rc_t ompd_get_omp_version(ompd_address_space_handle_t *address_space, ompd_word_t *omp_version)
ompd_rc_t ompd_get_display_control_vars(ompd_address_space_handle_t *address_space_handle, const char *const **control_vars)
void(* ompt_callback_buffer_request_t)(int device_num, ompt_buffer_t **buffer, unsigned long *bytes)
Definition omp-tools.h:587
ompd_callback_get_thread_context_for_thread_id_fn_t get_thread_context_for_thread_id
Definition omp-tools.h:1169
const char * message
Definition omp-tools.h:1075
ompd_addr_t address
Definition omp-tools.h:1083
const void * codeptr_ra
Definition omp-tools.h:902
ompt_task_flag_t
Definition omp-tools.h:390
@ ompt_task_explicit
Definition omp-tools.h:393
@ ompt_task_merged
Definition omp-tools.h:400
@ ompt_task_initial
Definition omp-tools.h:391
@ ompt_task_undeferred
Definition omp-tools.h:396
@ ompt_task_target
Definition omp-tools.h:394
@ ompt_task_final
Definition omp-tools.h:398
@ ompt_task_implicit
Definition omp-tools.h:392
@ ompt_task_mergeable
Definition omp-tools.h:399
@ ompt_task_taskwait
Definition omp-tools.h:395
@ ompt_task_untied
Definition omp-tools.h:397
ompt_callback_masked_t ompt_callback_master_t
Definition omp-tools.h:854
ompt_dependence_type_t dependence_type
Definition omp-tools.h:622
void(* ompt_callback_target_map_emi_t)(ompt_data_t *target_data, unsigned int nitems, void **host_addr, void **device_addr, unsigned long *bytes, unsigned int *mapping_flags, const void *codeptr_ra)
Definition omp-tools.h:1011
void(* ompt_callback_thread_begin_t)(ompt_thread_t thread_type, ompt_data_t *thread_data)
Definition omp-tools.h:717
void(* ompt_callback_device_initialize_t)(int device_num, const char *type, ompt_device_t *device, ompt_function_lookup_t lookup, const char *documentation)
Definition omp-tools.h:932
uint64_t ompd_device_t
Definition omp-tools.h:530
void(* ompt_callback_parallel_begin_t)(ompt_data_t *encountering_task_data, const ompt_frame_t *encountering_task_frame, ompt_data_t *parallel_data, unsigned int requested_parallelism, int flags, const void *codeptr_ra)
Definition omp-tools.h:726
ompt_target_data_op_t
Definition omp-tools.h:337
@ ompt_target_data_disassociate
Definition omp-tools.h:343
@ ompt_target_data_alloc_async
Definition omp-tools.h:344
@ ompt_target_data_alloc
Definition omp-tools.h:338
@ ompt_target_data_transfer_to_device
Definition omp-tools.h:339
@ ompt_target_data_delete_async
Definition omp-tools.h:347
@ ompt_target_data_transfer_from_device_async
Definition omp-tools.h:346
@ ompt_target_data_associate
Definition omp-tools.h:342
@ ompt_target_data_delete
Definition omp-tools.h:341
@ ompt_target_data_transfer_from_device
Definition omp-tools.h:340
@ ompt_target_data_transfer_to_device_async
Definition omp-tools.h:345
ompt_sync_region_t
Definition omp-tools.h:323
@ ompt_sync_region_reduction
Definition omp-tools.h:330
@ ompt_sync_region_barrier_teams
Definition omp-tools.h:333
@ ompt_sync_region_barrier
Definition omp-tools.h:324
@ ompt_sync_region_barrier_implementation
Definition omp-tools.h:327
@ ompt_sync_region_taskgroup
Definition omp-tools.h:329
@ ompt_sync_region_barrier_implicit_parallel
Definition omp-tools.h:332
@ ompt_sync_region_taskwait
Definition omp-tools.h:328
@ ompt_sync_region_barrier_implicit_workshare
Definition omp-tools.h:331
@ ompt_sync_region_barrier_explicit
Definition omp-tools.h:326
@ ompt_sync_region_barrier_implicit
Definition omp-tools.h:325
uint64_t(* ompt_get_unique_id_t)(void)
Definition omp-tools.h:520
uint64_t ompt_buffer_cursor_t
Definition omp-tools.h:296
ompt_work_t
Definition omp-tools.h:351
@ ompt_work_single_other
Definition omp-tools.h:355
@ ompt_work_scope
Definition omp-tools.h:359
@ ompt_work_taskloop
Definition omp-tools.h:358
@ ompt_work_sections
Definition omp-tools.h:353
@ ompt_work_loop_static
Definition omp-tools.h:360
@ ompt_work_workshare
Definition omp-tools.h:356
@ ompt_work_loop
Definition omp-tools.h:352
@ ompt_work_single_executor
Definition omp-tools.h:354
@ ompt_work_loop_other
Definition omp-tools.h:363
@ ompt_work_loop_guided
Definition omp-tools.h:362
@ ompt_work_loop_dynamic
Definition omp-tools.h:361
@ ompt_work_distribute
Definition omp-tools.h:357
ompd_rc_t ompd_get_state(ompd_thread_handle_t *thread_handle, ompd_word_t *state, ompd_wait_id_t *wait_id)
kmp_mutex_impl_t
Definition omp-tools.h:217
ompt_scope_endpoint_t endpoint
Definition omp-tools.h:765
ompd_rc_t ompd_finalize(void)
ompd_rc_t ompd_get_tool_data(void *handle, ompd_scope_t scope, ompd_word_t *value, ompd_address_t *ptr)
unsigned int actual_parallelism
Definition omp-tools.h:844
ompt_device_time_t end_time
Definition omp-tools.h:1052
ompt_device_time_t end_time
Definition omp-tools.h:982
int(* ompt_get_state_t)(ompt_wait_id_t *wait_id)
Definition omp-tools.h:657
uint64_t ompt_id_t
Definition omp-tools.h:292
ompt_scope_endpoint_t endpoint
Definition omp-tools.h:1004
ompt_id_t target_id
Definition omp-tools.h:1352
ompd_rc_t ompd_get_thread_in_parallel(ompd_parallel_handle_t *parallel_handle, int thread_num, ompd_thread_handle_t **thread_handle)
int(* ompt_get_parallel_info_t)(int ancestor_level, ompt_data_t **parallel_data, int *team_size)
Definition omp-tools.h:659
int(* ompt_advance_buffer_cursor_t)(ompt_device_t *device, ompt_buffer_t *buffer, unsigned long size, ompt_buffer_cursor_t current, ompt_buffer_cursor_t *next)
Definition omp-tools.h:702
void(* ompt_callback_dispatch_t)(ompt_data_t *parallel_data, ompt_data_t *task_data, ompt_dispatch_t kind, ompt_data_t instance)
Definition omp-tools.h:772
ompt_dispatch_t
Definition omp-tools.h:314
@ ompt_dispatch_ws_loop_chunk
Definition omp-tools.h:317
@ ompt_dispatch_taskloop_chunk
Definition omp-tools.h:318
@ ompt_dispatch_section
Definition omp-tools.h:316
@ ompt_dispatch_distribute_chunk
Definition omp-tools.h:319
@ ompt_dispatch_iteration
Definition omp-tools.h:315
const void * codeptr_ra
Definition omp-tools.h:769
void ompd_bp_parallel_begin(void)
#define DEPRECATED_51
Definition omp-tools.h:30
uint64_t ompd_thread_id_t
Definition omp-tools.h:532
void(* ompt_callback_device_load_t)(int device_num, const char *filename, int64_t offset_in_file, void *vma_in_file, unsigned long bytes, void *host_addr, void *device_addr, uint64_t module_id)
Definition omp-tools.h:940
void(* ompt_callback_target_emi_t)(ompt_target_t kind, ompt_scope_endpoint_t endpoint, int device_num, ompt_data_t *task_data, ompt_data_t *target_task_data, ompt_data_t *target_data, const void *codeptr_ra)
Definition omp-tools.h:986
ompd_rc_t ompd_get_api_version(ompd_word_t *version)
ompd_seg_t segment
Definition omp-tools.h:1082
struct _ompd_aspace_cont ompd_address_space_context_t
Definition omp-tools.h:1097
ompt_callbacks_t
Definition omp-tools.h:228
@ ompt_callback_lock_init
Definition omp-tools.h:253
@ ompt_callback_device_initialize
Definition omp-tools.h:240
@ ompt_callback_sync_region
Definition omp-tools.h:252
@ ompt_callback_nest_lock
Definition omp-tools.h:257
@ ompt_callback_thread_begin
Definition omp-tools.h:229
@ ompt_callback_thread_end
Definition omp-tools.h:230
@ ompt_callback_task_schedule
Definition omp-tools.h:234
@ ompt_callback_mutex_released
Definition omp-tools.h:245
@ ompt_callback_target_emi
Definition omp-tools.h:262
@ ompt_callback_work
Definition omp-tools.h:248
@ ompt_callback_target_map_emi
Definition omp-tools.h:265
@ ompt_callback_device_unload
Definition omp-tools.h:243
@ ompt_callback_device_load
Definition omp-tools.h:242
@ ompt_callback_mutex_acquired
Definition omp-tools.h:256
@ ompt_callback_target_map
Definition omp-tools.h:251
@ ompt_callback_dependences
Definition omp-tools.h:246
@ ompt_callback_target_submit_emi
Definition omp-tools.h:264
@ ompt_callback_parallel_end
Definition omp-tools.h:232
@ ompt_callback_task_create
Definition omp-tools.h:233
@ ompt_callback_target
Definition omp-tools.h:236
@ ompt_callback_flush
Definition omp-tools.h:258
@ ompt_callback_device_finalize
Definition omp-tools.h:241
@ ompt_callback_sync_region_wait
Definition omp-tools.h:244
@ ompt_callback_dispatch
Definition omp-tools.h:261
@ ompt_callback_error
Definition omp-tools.h:266
@ ompt_callback_target_data_op
Definition omp-tools.h:237
@ ompt_callback_target_submit
Definition omp-tools.h:238
@ ompt_callback_control_tool
Definition omp-tools.h:239
@ ompt_callback_reduction
Definition omp-tools.h:260
@ ompt_callback_masked
Definition omp-tools.h:250
@ ompt_callback_mutex_acquire
Definition omp-tools.h:255
@ ompt_callback_parallel_begin
Definition omp-tools.h:231
@ ompt_callback_lock_destroy
Definition omp-tools.h:254
@ ompt_callback_target_data_op_emi
Definition omp-tools.h:263
@ ompt_callback_master
Definition omp-tools.h:249
@ ompt_callback_implicit_task
Definition omp-tools.h:235
@ ompt_callback_task_dependence
Definition omp-tools.h:247
@ ompt_callback_cancel
Definition omp-tools.h:259
struct _ompd_aspace_handle ompd_address_space_handle_t
Definition omp-tools.h:1092
ompd_rc_t ompd_get_icv_from_scope(void *handle, ompd_scope_t scope, ompd_icv_id_t icv_id, ompd_word_t *icv_value)
ompt_native_mon_flag_t
Definition omp-tools.h:378
@ ompt_native_idleness
Definition omp-tools.h:386
@ ompt_native_kernel_invocation
Definition omp-tools.h:381
@ ompt_native_runtime
Definition omp-tools.h:384
@ ompt_native_driver
Definition omp-tools.h:383
@ ompt_native_overhead
Definition omp-tools.h:385
@ ompt_native_data_motion_explicit
Definition omp-tools.h:379
@ ompt_native_data_motion_implicit
Definition omp-tools.h:380
@ ompt_native_kernel_execution
Definition omp-tools.h:382
void(* ompt_callback_work_t)(ompt_work_t work_type, ompt_scope_endpoint_t endpoint, ompt_data_t *parallel_data, ompt_data_t *task_data, uint64_t count, const void *codeptr_ra)
Definition omp-tools.h:755
ompt_record_t(* ompt_get_record_type_t)(ompt_buffer_t *buffer, ompt_buffer_cursor_t current)
Definition omp-tools.h:708
const void * codeptr_ra
Definition omp-tools.h:1077
int(* ompt_start_trace_t)(ompt_device_t *device, ompt_callback_buffer_request_t request, ompt_callback_buffer_complete_t complete)
Definition omp-tools.h:692
ompt_state_t
Definition omp-tools.h:489
@ ompt_state_wait_barrier_explicit
Definition omp-tools.h:498
@ ompt_state_wait_lock
Definition omp-tools.h:506
@ ompt_state_wait_ordered
Definition omp-tools.h:509
@ ompt_state_idle
Definition omp-tools.h:515
@ ompt_state_wait_critical
Definition omp-tools.h:507
@ ompt_state_wait_target_map
Definition omp-tools.h:512
@ ompt_state_undefined
Definition omp-tools.h:517
@ ompt_state_work_parallel
Definition omp-tools.h:491
@ ompt_state_wait_barrier_implicit
Definition omp-tools.h:497
@ ompt_state_overhead
Definition omp-tools.h:516
@ ompt_state_work_reduction
Definition omp-tools.h:492
@ ompt_state_wait_target_update
Definition omp-tools.h:513
@ ompt_state_wait_barrier_implementation
Definition omp-tools.h:499
@ ompt_state_wait_barrier_implicit_parallel
Definition omp-tools.h:495
@ ompt_state_work_serial
Definition omp-tools.h:490
@ ompt_state_wait_barrier_teams
Definition omp-tools.h:500
@ ompt_state_wait_taskwait
Definition omp-tools.h:502
@ ompt_state_wait_mutex
Definition omp-tools.h:505
@ ompt_state_wait_barrier_implicit_workshare
Definition omp-tools.h:496
@ ompt_state_wait_target
Definition omp-tools.h:511
@ ompt_state_wait_taskgroup
Definition omp-tools.h:503
@ ompt_state_wait_barrier
Definition omp-tools.h:494
@ ompt_state_wait_atomic
Definition omp-tools.h:508
uint64_t ompd_icv_id_t
Definition omp-tools.h:544
const void * codeptr_ra
Definition omp-tools.h:861
ompt_device_time_t time
Definition omp-tools.h:1350
ompd_rc_t ompd_get_omp_version_string(ompd_address_space_handle_t *address_space, const char **string)
ompd_rc_t ompd_enumerate_icvs(ompd_address_space_handle_t *handle, ompd_icv_id_t current, ompd_icv_id_t *next_id, const char **next_icv_name, ompd_scope_t *next_scope, int *more)
int(* ompt_get_num_places_t)(void)
Definition omp-tools.h:647
uint64_t ompt_wait_id_t
Definition omp-tools.h:477
ompd_rc_t(* ompd_callback_symbol_addr_fn_t)(ompd_address_space_context_t *address_space_context, ompd_thread_context_t *thread_context, const char *symbol_name, ompd_address_t *symbol_addr, const char *file_name)
Definition omp-tools.h:1127
int(* ompt_stop_trace_t)(ompt_device_t *device)
Definition omp-tools.h:700
ompt_record_native_t
Definition omp-tools.h:277
@ ompt_record_native_event
Definition omp-tools.h:279
@ ompt_record_native_info
Definition omp-tools.h:278
ompt_target_t kind
Definition omp-tools.h:1003
ompt_device_time_t(* ompt_get_device_time_t)(ompt_device_t *device)
Definition omp-tools.h:682
ompt_scope_endpoint_t
Definition omp-tools.h:307
@ ompt_scope_begin
Definition omp-tools.h:308
@ ompt_scope_end
Definition omp-tools.h:309
@ ompt_scope_beginend
Definition omp-tools.h:310
uint64_t ompd_size_t
Definition omp-tools.h:522
ompd_callback_device_host_fn_t device_to_host
Definition omp-tools.h:1167
ompd_callback_print_string_fn_t print_string
Definition omp-tools.h:1161
void(* ompt_callback_parallel_end_t)(ompt_data_t *parallel_data, ompt_data_t *encountering_task_data, int flags, const void *codeptr_ra)
Definition omp-tools.h:742
ompt_record_t
Definition omp-tools.h:270
@ ompt_record_invalid
Definition omp-tools.h:273
@ ompt_record_ompt
Definition omp-tools.h:271
@ ompt_record_native
Definition omp-tools.h:272
ompt_data_t enter_frame
Definition omp-tools.h:576
void(* ompt_callback_mutex_t)(ompt_mutex_t kind, ompt_wait_id_t wait_id, const void *codeptr_ra)
Definition omp-tools.h:894
ompt_scope_endpoint_t endpoint
Definition omp-tools.h:873
ompt_target_t
Definition omp-tools.h:416
@ ompt_target_exit_data_nowait
Definition omp-tools.h:423
@ ompt_target_update_nowait
Definition omp-tools.h:424
@ ompt_target_nowait
Definition omp-tools.h:421
@ ompt_target
Definition omp-tools.h:417
@ ompt_target_enter_data
Definition omp-tools.h:418
@ ompt_target_exit_data
Definition omp-tools.h:419
@ ompt_target_update
Definition omp-tools.h:420
@ ompt_target_enter_data_nowait
Definition omp-tools.h:422
ompt_wait_id_t wait_id
Definition omp-tools.h:912
ompt_set_result_t
Definition omp-tools.h:283
@ ompt_set_never
Definition omp-tools.h:285
@ ompt_set_impossible
Definition omp-tools.h:286
@ ompt_set_error
Definition omp-tools.h:284
@ ompt_set_always
Definition omp-tools.h:289
@ ompt_set_sometimes
Definition omp-tools.h:287
@ ompt_set_sometimes_paired
Definition omp-tools.h:288
ompd_rc_t ompd_rel_address_space_handle(ompd_address_space_handle_t *handle)
ompt_dependence_t dep
Definition omp-tools.h:808
ompd_scope_t
Definition omp-tools.h:535
@ ompd_scope_address_space
Definition omp-tools.h:537
@ ompd_scope_implicit_task
Definition omp-tools.h:540
@ ompd_scope_parallel
Definition omp-tools.h:539
@ ompd_scope_thread
Definition omp-tools.h:538
@ ompd_scope_task
Definition omp-tools.h:541
@ ompd_scope_global
Definition omp-tools.h:536
void(* ompt_callback_dependences_t)(ompt_data_t *task_data, const ompt_dependence_t *deps, int ndeps)
Definition omp-tools.h:801
ompt_scope_endpoint_t endpoint
Definition omp-tools.h:841
int(* ompt_initialize_t)(ompt_function_lookup_t lookup, int initial_device_num, ompt_data_t *tool_data)
Definition omp-tools.h:599
int(* ompt_get_task_info_t)(int ancestor_level, int *flags, ompt_data_t **task_data, ompt_frame_t **task_frame, ompt_data_t **parallel_data, int *thread_num)
Definition omp-tools.h:663
ompd_rc_t ompd_get_scheduling_task_handle(ompd_task_handle_t *task_handle, ompd_task_handle_t **scheduling_task_handle)
ompd_callback_device_host_fn_t host_to_device
Definition omp-tools.h:1168
ompd_rc_t ompd_get_curr_task_handle(ompd_thread_handle_t *thread_handle, ompd_task_handle_t **task_handle)
ompd_rc_t ompd_get_task_in_parallel(ompd_parallel_handle_t *parallel_handle, int thread_num, ompd_task_handle_t **task_handle)
union ompt_record_ompt_t::@752 record
ompt_scope_endpoint_t endpoint
Definition omp-tools.h:858
void ompt_buffer_t
Definition omp-tools.h:585
ompd_rc_t ompd_rel_thread_handle(ompd_thread_handle_t *thread_handle)
ompd_rc_t(* ompd_callback_memory_write_fn_t)(ompd_address_space_context_t *address_space_context, ompd_thread_context_t *thread_context, const ompd_address_t *addr, ompd_size_t nbytes, const void *buffer)
Definition omp-tools.h:1141
void(* ompt_callback_target_t)(ompt_target_t kind, ompt_scope_endpoint_t endpoint, int device_num, ompt_data_t *task_data, ompt_id_t target_id, const void *codeptr_ra)
Definition omp-tools.h:994
const void * codeptr_ra
Definition omp-tools.h:913
ompd_callback_symbol_addr_fn_t symbol_addr_lookup
Definition omp-tools.h:1163
ompd_rc_t ompd_get_enclosing_parallel_handle(ompd_parallel_handle_t *parallel_handle, ompd_parallel_handle_t **enclosing_parallel_handle)
void ompt_device_t
Definition omp-tools.h:583
ompd_rc_t ompd_thread_handle_compare(ompd_thread_handle_t *thread_handle_1, ompd_thread_handle_t *thread_handle_2, int *cmp_value)
int(* ompt_flush_trace_t)(ompt_device_t *device)
Definition omp-tools.h:698
uint64_t ompt_hwid_t
Definition omp-tools.h:475
int64_t ompd_word_t
Definition omp-tools.h:527
struct _ompd_parallel_handle ompd_parallel_handle_t
Definition omp-tools.h:1094
int(* ompt_callback_control_tool_t)(uint64_t command, uint64_t modifier, void *arg, const void *codeptr_ra)
Definition omp-tools.h:1055
ompt_wait_id_t wait_id
Definition omp-tools.h:901
uint64_t value
Definition omp-tools.h:569
ompt_sync_region_t kind
Definition omp-tools.h:872
ompt_callbacks_t type
Definition omp-tools.h:1349
ompt_set_result_t(* ompt_set_trace_native_t)(ompt_device_t *device, int enable, int flags)
Definition omp-tools.h:690
int(* ompt_get_callback_t)(ompt_callbacks_t event, ompt_callback_t *callback)
Definition omp-tools.h:641
ompd_rc_t
Definition omp-tools.h:547
@ ompd_rc_unsupported
Definition omp-tools.h:553
@ ompd_rc_needs_state_tracking
Definition omp-tools.h:554
@ ompd_rc_device_read_error
Definition omp-tools.h:556
@ ompd_rc_callback_error
Definition omp-tools.h:560
@ ompd_rc_nomem
Definition omp-tools.h:558
@ ompd_rc_device_write_error
Definition omp-tools.h:557
@ ompd_rc_incompatible
Definition omp-tools.h:555
@ ompd_rc_bad_input
Definition omp-tools.h:551
@ ompd_rc_error
Definition omp-tools.h:552
@ ompd_rc_stale_handle
Definition omp-tools.h:550
@ ompd_rc_unavailable
Definition omp-tools.h:549
@ ompd_rc_ok
Definition omp-tools.h:548
@ ompd_rc_incomplete
Definition omp-tools.h:559
ompd_rc_t(* ompd_callback_get_thread_context_for_thread_id_fn_t)(ompd_address_space_context_t *address_space_context, ompd_thread_id_t kind, ompd_size_t sizeof_thread_id, const void *thread_id, ompd_thread_context_t **thread_context)
Definition omp-tools.h:1117
ompd_rc_t(* ompd_callback_memory_alloc_fn_t)(ompd_size_t nbytes, void **ptr)
Definition omp-tools.h:1113
ompt_frame_flag_t
Definition omp-tools.h:480
@ ompt_frame_runtime
Definition omp-tools.h:481
@ ompt_frame_framepointer
Definition omp-tools.h:484
@ ompt_frame_application
Definition omp-tools.h:482
@ ompt_frame_stackaddress
Definition omp-tools.h:485
@ ompt_frame_cfa
Definition omp-tools.h:483
void(* ompt_callback_task_dependence_t)(ompt_data_t *src_task_data, ompt_data_t *sink_task_data)
Definition omp-tools.h:812
unsigned long * bytes
Definition omp-tools.h:1033
ompd_rc_t(* ompd_callback_sizeof_fn_t)(ompd_address_space_context_t *address_space_context, ompd_device_type_sizes_t *sizes)
Definition omp-tools.h:1124
void(* ompt_callback_nest_lock_t)(ompt_scope_endpoint_t endpoint, ompt_wait_id_t wait_id, const void *codeptr_ra)
Definition omp-tools.h:905
ompt_thread_t
Definition omp-tools.h:299
@ ompt_thread_initial
Definition omp-tools.h:300
@ ompt_thread_unknown
Definition omp-tools.h:303
@ ompt_thread_other
Definition omp-tools.h:302
@ ompt_thread_worker
Definition omp-tools.h:301
uint64_t ompd_addr_t
Definition omp-tools.h:526
void ompd_bp_task_begin(void)
void(* ompt_callback_target_map_t)(ompt_id_t target_id, unsigned int nitems, void **host_addr, void **device_addr, unsigned long *bytes, unsigned int *mapping_flags, const void *codeptr_ra)
Definition omp-tools.h:1019
ompd_rc_t ompd_get_task_parallel_handle(ompd_task_handle_t *task_handle, ompd_parallel_handle_t **task_parallel_handle)
int(* ompt_get_target_info_t)(uint64_t *device_num, ompt_id_t *target_id, ompt_id_t *host_op_id)
Definition omp-tools.h:672
ompt_id_t parallel_id
Definition omp-tools.h:766
unsigned int requested_num_teams
Definition omp-tools.h:1050
ompd_rc_t(* ompd_callback_print_string_fn_t)(const char *string, int category)
Definition omp-tools.h:1155
void(* ompt_callback_cancel_t)(ompt_data_t *task_data, int flags, const void *codeptr_ra)
Definition omp-tools.h:923
int(* ompt_get_proc_id_t)(void)
Definition omp-tools.h:655
ompt_target_data_op_t optype
Definition omp-tools.h:976
void(* ompt_callback_masked_t)(ompt_scope_endpoint_t endpoint, ompt_data_t *parallel_data, ompt_data_t *task_data, const void *codeptr_ra)
Definition omp-tools.h:849
ompd_word_t frame_flag
Definition omp-tools.h:1089
ompd_rc_t ompd_initialize(ompd_word_t api_version, const ompd_callbacks_t *callbacks)
int(* ompt_get_task_memory_t)(void **addr, unsigned long *size, int block)
Definition omp-tools.h:670
ompd_rc_t ompd_task_handle_compare(ompd_task_handle_t *task_handle_1, ompd_task_handle_t *task_handle_2, int *cmp_value)
void(* ompt_callback_sync_region_t)(ompt_sync_region_t kind, ompt_scope_endpoint_t endpoint, ompt_data_t *parallel_data, ompt_data_t *task_data, const void *codeptr_ra)
Definition omp-tools.h:864
void(* ompt_callback_target_submit_emi_t)(ompt_scope_endpoint_t endpoint, ompt_data_t *target_data, ompt_id_t *host_op_id, unsigned int requested_num_teams)
Definition omp-tools.h:1038
void ompd_bp_device_end(void)
ompt_data_t exit_frame
Definition omp-tools.h:575
unsigned long length
Definition omp-tools.h:1076
ompd_callback_memory_read_fn_t read_string
Definition omp-tools.h:1166

◆ FOREACH_OMPT_50_TARGET_EVENT

#define FOREACH_OMPT_50_TARGET_EVENT (   macro)
Value:
FOREACH_OMPT_NOEMI_EVENT(macro)
#define FOREACH_OMPT_DEVICE_EVENT(macro)
Definition omp-tools.h:159

Definition at line 193 of file omp-tools.h.

◆ FOREACH_OMPT_51_EVENT

#define FOREACH_OMPT_51_EVENT (   macro)
Value:
FOREACH_OMPT_DEVICE_EVENT(macro) \
FOREACH_OMPT_EMI_EVENT(macro)
#define FOREACH_OMPT_HOST_EVENT(macro)
Definition omp-tools.h:101

Definition at line 207 of file omp-tools.h.

◆ FOREACH_OMPT_51_TARGET_EVENT

#define FOREACH_OMPT_51_TARGET_EVENT (   macro)
Value:
FOREACH_OMPT_EMI_EVENT(macro)

Definition at line 197 of file omp-tools.h.

◆ FOREACH_OMPT_DEVICE_EVENT

#define FOREACH_OMPT_DEVICE_EVENT (   macro)
Value:
/*--- Mandatory Events ---*/ \
12) /* device initialize */ \
13) /* device finalize */ \
\

Definition at line 159 of file omp-tools.h.

◆ FOREACH_OMPT_EMI_EVENT

#define FOREACH_OMPT_EMI_EVENT (   macro)
Value:
/*--- Mandatory Events ---*/ \
34) /* target data op */ \
35) /* target submit */ /* Optional Events */ \

Definition at line 182 of file omp-tools.h.

◆ FOREACH_OMPT_EVENT

#define FOREACH_OMPT_EVENT (   macro)
Value:
FOREACH_OMPT_DEVICE_EVENT(macro) \
FOREACH_OMPT_NOEMI_EVENT(macro) \
FOREACH_OMPT_EMI_EVENT(macro)

Definition at line 201 of file omp-tools.h.

◆ FOREACH_OMPT_HOST_EVENT

#define FOREACH_OMPT_HOST_EVENT (   macro)

Definition at line 101 of file omp-tools.h.

◆ FOREACH_OMPT_INQUIRY_FN

#define FOREACH_OMPT_INQUIRY_FN (   macro)
Value:
macro(ompt_enumerate_states) macro(ompt_enumerate_mutex_impls) \
\
macro(ompt_set_callback) macro(ompt_get_callback) \
\
macro(ompt_get_state) \
\
macro(ompt_get_parallel_info) macro(ompt_get_task_info) \
macro(ompt_get_task_memory) macro(ompt_get_thread_data) \
macro(ompt_get_unique_id) macro(ompt_finalize_tool) \
\
macro(ompt_get_num_procs) macro(ompt_get_num_places) \
macro(ompt_get_place_proc_ids) macro(ompt_get_place_num) \
macro(ompt_get_partition_place_nums) macro(ompt_get_proc_id) \
\
macro(ompt_get_target_info) macro(ompt_get_num_devices)

Definition at line 37 of file omp-tools.h.

◆ FOREACH_OMPT_NOEMI_EVENT

#define FOREACH_OMPT_NOEMI_EVENT (   macro)
Value:
/*--- Mandatory Events ---*/ \
macro(ompt_callback_target, ompt_callback_target_t, 8) /* target */ \
9) /* target data op */ \
10) /* target submit */ /* Optional Events */ \

Definition at line 171 of file omp-tools.h.

◆ FOREACH_OMPT_STATE

#define FOREACH_OMPT_STATE (   macro)

Definition at line 54 of file omp-tools.h.

◆ kmp_mutex_impl_macro

#define kmp_mutex_impl_macro (   impl,
  code 
)    impl = code,

Definition at line 218 of file omp-tools.h.

◆ ompd_segment_none

#define ompd_segment_none   0

Definition at line 1394 of file omp-tools.h.

◆ ompt_addr_none

#define ompt_addr_none   ~0

Definition at line 1390 of file omp-tools.h.

◆ ompt_data_none

#define ompt_data_none
Value:
{ \
0 \
}

Definition at line 1384 of file omp-tools.h.

1385 { \
1386 0 \
1387 }

◆ ompt_hwid_none

#define ompt_hwid_none   0

Definition at line 1389 of file omp-tools.h.

◆ ompt_id_none

#define ompt_id_none   0

Definition at line 1383 of file omp-tools.h.

◆ ompt_mutex_impl_none

#define ompt_mutex_impl_none   0

Definition at line 1391 of file omp-tools.h.

◆ ompt_time_none

#define ompt_time_none   0

Definition at line 1388 of file omp-tools.h.

◆ ompt_wait_id_none

#define ompt_wait_id_none   0

Definition at line 1392 of file omp-tools.h.

Typedef Documentation

◆ ompd_addr_t

typedef uint64_t ompd_addr_t

Definition at line 526 of file omp-tools.h.

◆ ompd_address_space_context_t

typedef struct _ompd_aspace_cont ompd_address_space_context_t

Definition at line 1097 of file omp-tools.h.

◆ ompd_address_space_handle_t

typedef struct _ompd_aspace_handle ompd_address_space_handle_t

Definition at line 1092 of file omp-tools.h.

◆ ompd_callback_device_host_fn_t

typedef ompd_rc_t(* ompd_callback_device_host_fn_t) (ompd_address_space_context_t *address_space_context, const void *input, ompd_size_t unit_size, ompd_size_t count, void *output)

Definition at line 1148 of file omp-tools.h.

◆ ompd_callback_get_thread_context_for_thread_id_fn_t

typedef ompd_rc_t(* ompd_callback_get_thread_context_for_thread_id_fn_t) (ompd_address_space_context_t *address_space_context, ompd_thread_id_t kind, ompd_size_t sizeof_thread_id, const void *thread_id, ompd_thread_context_t **thread_context)

Definition at line 1117 of file omp-tools.h.

◆ ompd_callback_memory_alloc_fn_t

typedef ompd_rc_t(* ompd_callback_memory_alloc_fn_t) (ompd_size_t nbytes, void **ptr)

Definition at line 1113 of file omp-tools.h.

◆ ompd_callback_memory_free_fn_t

typedef ompd_rc_t(* ompd_callback_memory_free_fn_t) (void *ptr)

Definition at line 1115 of file omp-tools.h.

◆ ompd_callback_memory_read_fn_t

typedef ompd_rc_t(* ompd_callback_memory_read_fn_t) (ompd_address_space_context_t *address_space_context, ompd_thread_context_t *thread_context, const ompd_address_t *addr, ompd_size_t nbytes, void *buffer)

Definition at line 1134 of file omp-tools.h.

◆ ompd_callback_memory_write_fn_t

typedef ompd_rc_t(* ompd_callback_memory_write_fn_t) (ompd_address_space_context_t *address_space_context, ompd_thread_context_t *thread_context, const ompd_address_t *addr, ompd_size_t nbytes, const void *buffer)

Definition at line 1141 of file omp-tools.h.

◆ ompd_callback_print_string_fn_t

typedef ompd_rc_t(* ompd_callback_print_string_fn_t) (const char *string, int category)

Definition at line 1155 of file omp-tools.h.

◆ ompd_callback_sizeof_fn_t

typedef ompd_rc_t(* ompd_callback_sizeof_fn_t) (ompd_address_space_context_t *address_space_context, ompd_device_type_sizes_t *sizes)

Definition at line 1124 of file omp-tools.h.

◆ ompd_callback_symbol_addr_fn_t

typedef ompd_rc_t(* ompd_callback_symbol_addr_fn_t) (ompd_address_space_context_t *address_space_context, ompd_thread_context_t *thread_context, const char *symbol_name, ompd_address_t *symbol_addr, const char *file_name)

Definition at line 1127 of file omp-tools.h.

◆ ompd_device_t

typedef uint64_t ompd_device_t

Definition at line 530 of file omp-tools.h.

◆ ompd_icv_id_t

typedef uint64_t ompd_icv_id_t

Definition at line 544 of file omp-tools.h.

◆ ompd_parallel_handle_t

typedef struct _ompd_parallel_handle ompd_parallel_handle_t

Definition at line 1094 of file omp-tools.h.

◆ ompd_seg_t

typedef uint64_t ompd_seg_t

Definition at line 528 of file omp-tools.h.

◆ ompd_size_t

typedef uint64_t ompd_size_t

Definition at line 522 of file omp-tools.h.

◆ ompd_task_handle_t

typedef struct _ompd_task_handle ompd_task_handle_t

Definition at line 1095 of file omp-tools.h.

◆ ompd_thread_context_t

typedef struct _ompd_thread_cont ompd_thread_context_t

Definition at line 1098 of file omp-tools.h.

◆ ompd_thread_handle_t

typedef struct _ompd_thread_handle ompd_thread_handle_t

Definition at line 1093 of file omp-tools.h.

◆ ompd_thread_id_t

typedef uint64_t ompd_thread_id_t

Definition at line 532 of file omp-tools.h.

◆ ompd_wait_id_t

typedef uint64_t ompd_wait_id_t

Definition at line 524 of file omp-tools.h.

◆ ompd_word_t

typedef int64_t ompd_word_t

Definition at line 527 of file omp-tools.h.

◆ ompt_advance_buffer_cursor_t

typedef int(* ompt_advance_buffer_cursor_t) (ompt_device_t *device, ompt_buffer_t *buffer, unsigned long size, ompt_buffer_cursor_t current, ompt_buffer_cursor_t *next)

Definition at line 702 of file omp-tools.h.

◆ ompt_buffer_cursor_t

typedef uint64_t ompt_buffer_cursor_t

Definition at line 296 of file omp-tools.h.

◆ ompt_buffer_t

typedef void ompt_buffer_t

Definition at line 585 of file omp-tools.h.

◆ ompt_callback_buffer_complete_t

typedef void(* ompt_callback_buffer_complete_t) (int device_num, ompt_buffer_t *buffer, unsigned long bytes, ompt_buffer_cursor_t begin, int buffer_owned)

Definition at line 591 of file omp-tools.h.

◆ ompt_callback_buffer_request_t

typedef void(* ompt_callback_buffer_request_t) (int device_num, ompt_buffer_t **buffer, unsigned long *bytes)

Definition at line 587 of file omp-tools.h.

◆ ompt_callback_cancel_t

typedef void(* ompt_callback_cancel_t) (ompt_data_t *task_data, int flags, const void *codeptr_ra)

Definition at line 923 of file omp-tools.h.

◆ ompt_callback_control_tool_t

typedef int(* ompt_callback_control_tool_t) (uint64_t command, uint64_t modifier, void *arg, const void *codeptr_ra)

Definition at line 1055 of file omp-tools.h.

◆ ompt_callback_dependences_t

typedef void(* ompt_callback_dependences_t) (ompt_data_t *task_data, const ompt_dependence_t *deps, int ndeps)

Definition at line 801 of file omp-tools.h.

◆ ompt_callback_device_finalize_t

typedef void(* ompt_callback_device_finalize_t) (int device_num)

Definition at line 938 of file omp-tools.h.

◆ ompt_callback_device_initialize_t

typedef void(* ompt_callback_device_initialize_t) (int device_num, const char *type, ompt_device_t *device, ompt_function_lookup_t lookup, const char *documentation)

Definition at line 932 of file omp-tools.h.

◆ ompt_callback_device_load_t

typedef void(* ompt_callback_device_load_t) (int device_num, const char *filename, int64_t offset_in_file, void *vma_in_file, unsigned long bytes, void *host_addr, void *device_addr, uint64_t module_id)

Definition at line 940 of file omp-tools.h.

◆ ompt_callback_device_unload_t

typedef void(* ompt_callback_device_unload_t) (int device_num, uint64_t module_id)

Definition at line 949 of file omp-tools.h.

◆ ompt_callback_dispatch_t

typedef void(* ompt_callback_dispatch_t) (ompt_data_t *parallel_data, ompt_data_t *task_data, ompt_dispatch_t kind, ompt_data_t instance)

Definition at line 772 of file omp-tools.h.

◆ ompt_callback_error_t

typedef void(* ompt_callback_error_t) (ompt_severity_t severity, const char *message, unsigned long length, const void *codeptr_ra)

Definition at line 1067 of file omp-tools.h.

◆ ompt_callback_flush_t

typedef void(* ompt_callback_flush_t) (ompt_data_t *thread_data, const void *codeptr_ra)

Definition at line 916 of file omp-tools.h.

◆ ompt_callback_implicit_task_t

typedef void(* ompt_callback_implicit_task_t) (ompt_scope_endpoint_t endpoint, ompt_data_t *parallel_data, ompt_data_t *task_data, unsigned int actual_parallelism, unsigned int index, int flags)

Definition at line 832 of file omp-tools.h.

◆ ompt_callback_masked_t

typedef void(* ompt_callback_masked_t) (ompt_scope_endpoint_t endpoint, ompt_data_t *parallel_data, ompt_data_t *task_data, const void *codeptr_ra)

Definition at line 849 of file omp-tools.h.

◆ ompt_callback_master_t

Definition at line 854 of file omp-tools.h.

◆ ompt_callback_mutex_acquire_t

typedef void(* ompt_callback_mutex_acquire_t) (ompt_mutex_t kind, unsigned int hint, unsigned int impl, ompt_wait_id_t wait_id, const void *codeptr_ra)

Definition at line 879 of file omp-tools.h.

◆ ompt_callback_mutex_t

typedef void(* ompt_callback_mutex_t) (ompt_mutex_t kind, ompt_wait_id_t wait_id, const void *codeptr_ra)

Definition at line 894 of file omp-tools.h.

◆ ompt_callback_nest_lock_t

typedef void(* ompt_callback_nest_lock_t) (ompt_scope_endpoint_t endpoint, ompt_wait_id_t wait_id, const void *codeptr_ra)

Definition at line 905 of file omp-tools.h.

◆ ompt_callback_parallel_begin_t

typedef void(* ompt_callback_parallel_begin_t) (ompt_data_t *encountering_task_data, const ompt_frame_t *encountering_task_frame, ompt_data_t *parallel_data, unsigned int requested_parallelism, int flags, const void *codeptr_ra)

Definition at line 726 of file omp-tools.h.

◆ ompt_callback_parallel_end_t

typedef void(* ompt_callback_parallel_end_t) (ompt_data_t *parallel_data, ompt_data_t *encountering_task_data, int flags, const void *codeptr_ra)

Definition at line 742 of file omp-tools.h.

◆ ompt_callback_sync_region_t

typedef void(* ompt_callback_sync_region_t) (ompt_sync_region_t kind, ompt_scope_endpoint_t endpoint, ompt_data_t *parallel_data, ompt_data_t *task_data, const void *codeptr_ra)

Definition at line 864 of file omp-tools.h.

◆ ompt_callback_t

typedef void(* ompt_callback_t) (void)

Definition at line 581 of file omp-tools.h.

◆ ompt_callback_target_data_op_emi_t

typedef void(* ompt_callback_target_data_op_emi_t) (ompt_scope_endpoint_t endpoint, ompt_data_t *target_task_data, ompt_data_t *target_data, ompt_id_t *host_op_id, ompt_target_data_op_t optype, void *src_addr, int src_device_num, void *dest_addr, int dest_device_num, unsigned long bytes, const void *codeptr_ra)

Definition at line 951 of file omp-tools.h.

◆ ompt_callback_target_data_op_t

typedef void(* ompt_callback_target_data_op_t) (ompt_id_t target_id, ompt_id_t host_op_id, ompt_target_data_op_t optype, void *src_addr, int src_device_num, void *dest_addr, int dest_device_num, unsigned long bytes, const void *codeptr_ra)

Definition at line 963 of file omp-tools.h.

◆ ompt_callback_target_emi_t

typedef void(* ompt_callback_target_emi_t) (ompt_target_t kind, ompt_scope_endpoint_t endpoint, int device_num, ompt_data_t *task_data, ompt_data_t *target_task_data, ompt_data_t *target_data, const void *codeptr_ra)

Definition at line 986 of file omp-tools.h.

◆ ompt_callback_target_map_emi_t

typedef void(* ompt_callback_target_map_emi_t) (ompt_data_t *target_data, unsigned int nitems, void **host_addr, void **device_addr, unsigned long *bytes, unsigned int *mapping_flags, const void *codeptr_ra)

Definition at line 1011 of file omp-tools.h.

◆ ompt_callback_target_map_t

typedef void(* ompt_callback_target_map_t) (ompt_id_t target_id, unsigned int nitems, void **host_addr, void **device_addr, unsigned long *bytes, unsigned int *mapping_flags, const void *codeptr_ra)

Definition at line 1019 of file omp-tools.h.

◆ ompt_callback_target_submit_emi_t

typedef void(* ompt_callback_target_submit_emi_t) (ompt_scope_endpoint_t endpoint, ompt_data_t *target_data, ompt_id_t *host_op_id, unsigned int requested_num_teams)

Definition at line 1038 of file omp-tools.h.

◆ ompt_callback_target_submit_t

typedef void(* ompt_callback_target_submit_t) (ompt_id_t target_id, ompt_id_t host_op_id, unsigned int requested_num_teams)

Definition at line 1043 of file omp-tools.h.

◆ ompt_callback_target_t

typedef void(* ompt_callback_target_t) (ompt_target_t kind, ompt_scope_endpoint_t endpoint, int device_num, ompt_data_t *task_data, ompt_id_t target_id, const void *codeptr_ra)

Definition at line 994 of file omp-tools.h.

◆ ompt_callback_task_create_t

typedef void(* ompt_callback_task_create_t) (ompt_data_t *encountering_task_data, const ompt_frame_t *encountering_task_frame, ompt_data_t *new_task_data, int flags, int has_dependences, const void *codeptr_ra)

Definition at line 785 of file omp-tools.h.

◆ ompt_callback_task_dependence_t

typedef void(* ompt_callback_task_dependence_t) (ompt_data_t *src_task_data, ompt_data_t *sink_task_data)

Definition at line 812 of file omp-tools.h.

◆ ompt_callback_task_schedule_t

typedef void(* ompt_callback_task_schedule_t) (ompt_data_t *prior_task_data, ompt_task_status_t prior_task_status, ompt_data_t *next_task_data)

Definition at line 821 of file omp-tools.h.

◆ ompt_callback_thread_begin_t

typedef void(* ompt_callback_thread_begin_t) (ompt_thread_t thread_type, ompt_data_t *thread_data)

Definition at line 717 of file omp-tools.h.

◆ ompt_callback_thread_end_t

typedef void(* ompt_callback_thread_end_t) (ompt_data_t *thread_data)

Definition at line 724 of file omp-tools.h.

◆ ompt_callback_work_t

typedef void(* ompt_callback_work_t) (ompt_work_t work_type, ompt_scope_endpoint_t endpoint, ompt_data_t *parallel_data, ompt_data_t *task_data, uint64_t count, const void *codeptr_ra)

Definition at line 755 of file omp-tools.h.

◆ ompt_device_t

typedef void ompt_device_t

Definition at line 583 of file omp-tools.h.

◆ ompt_device_time_t

typedef uint64_t ompt_device_time_t

Definition at line 294 of file omp-tools.h.

◆ ompt_enumerate_mutex_impls_t

typedef int(* ompt_enumerate_mutex_impls_t) (int current_impl, int *next_impl, const char **next_impl_name)

Definition at line 635 of file omp-tools.h.

◆ ompt_enumerate_states_t

typedef int(* ompt_enumerate_states_t) (int current_state, int *next_state, const char **next_state_name)

Definition at line 631 of file omp-tools.h.

◆ ompt_finalize_t

typedef void(* ompt_finalize_t) (ompt_data_t *tool_data)

Definition at line 597 of file omp-tools.h.

◆ ompt_finalize_tool_t

typedef void(* ompt_finalize_tool_t) (void)

Definition at line 678 of file omp-tools.h.

◆ ompt_flush_trace_t

typedef int(* ompt_flush_trace_t) (ompt_device_t *device)

Definition at line 698 of file omp-tools.h.

◆ ompt_function_lookup_t

typedef ompt_interface_fn_t(* ompt_function_lookup_t) (const char *interface_function_name)

Definition at line 565 of file omp-tools.h.

◆ ompt_get_callback_t

typedef int(* ompt_get_callback_t) (ompt_callbacks_t event, ompt_callback_t *callback)

Definition at line 641 of file omp-tools.h.

◆ ompt_get_device_num_procs_t

typedef int(* ompt_get_device_num_procs_t) (ompt_device_t *device)

Definition at line 680 of file omp-tools.h.

◆ ompt_get_device_time_t

typedef ompt_device_time_t(* ompt_get_device_time_t) (ompt_device_t *device)

Definition at line 682 of file omp-tools.h.

◆ ompt_get_num_devices_t

typedef int(* ompt_get_num_devices_t) (void)

Definition at line 676 of file omp-tools.h.

◆ ompt_get_num_places_t

typedef int(* ompt_get_num_places_t) (void)

Definition at line 647 of file omp-tools.h.

◆ ompt_get_num_procs_t

typedef int(* ompt_get_num_procs_t) (void)

Definition at line 645 of file omp-tools.h.

◆ ompt_get_parallel_info_t

typedef int(* ompt_get_parallel_info_t) (int ancestor_level, ompt_data_t **parallel_data, int *team_size)

Definition at line 659 of file omp-tools.h.

◆ ompt_get_partition_place_nums_t

typedef int(* ompt_get_partition_place_nums_t) (int place_nums_size, int *place_nums)

Definition at line 653 of file omp-tools.h.

◆ ompt_get_place_num_t

typedef int(* ompt_get_place_num_t) (void)

Definition at line 651 of file omp-tools.h.

◆ ompt_get_place_proc_ids_t

typedef int(* ompt_get_place_proc_ids_t) (int place_num, int ids_size, int *ids)

Definition at line 649 of file omp-tools.h.

◆ ompt_get_proc_id_t

typedef int(* ompt_get_proc_id_t) (void)

Definition at line 655 of file omp-tools.h.

◆ ompt_get_record_abstract_t

typedef ompt_record_abstract_t *(* ompt_get_record_abstract_t) (void *native_record)

Definition at line 715 of file omp-tools.h.

◆ ompt_get_record_native_t

typedef void *(* ompt_get_record_native_t) (ompt_buffer_t *buffer, ompt_buffer_cursor_t current, ompt_id_t *host_op_id)

Definition at line 711 of file omp-tools.h.

◆ ompt_get_record_ompt_t

typedef ompt_record_ompt_t *(* ompt_get_record_ompt_t) (ompt_buffer_t *buffer, ompt_buffer_cursor_t current)

Definition at line 1380 of file omp-tools.h.

◆ ompt_get_record_type_t

typedef ompt_record_t(* ompt_get_record_type_t) (ompt_buffer_t *buffer, ompt_buffer_cursor_t current)

Definition at line 708 of file omp-tools.h.

◆ ompt_get_state_t

typedef int(* ompt_get_state_t) (ompt_wait_id_t *wait_id)

Definition at line 657 of file omp-tools.h.

◆ ompt_get_target_info_t

typedef int(* ompt_get_target_info_t) (uint64_t *device_num, ompt_id_t *target_id, ompt_id_t *host_op_id)

Definition at line 672 of file omp-tools.h.

◆ ompt_get_task_info_t

typedef int(* ompt_get_task_info_t) (int ancestor_level, int *flags, ompt_data_t **task_data, ompt_frame_t **task_frame, ompt_data_t **parallel_data, int *thread_num)

Definition at line 663 of file omp-tools.h.

◆ ompt_get_task_memory_t

typedef int(* ompt_get_task_memory_t) (void **addr, unsigned long *size, int block)

Definition at line 670 of file omp-tools.h.

◆ ompt_get_thread_data_t

typedef ompt_data_t *(* ompt_get_thread_data_t) (void)

Definition at line 643 of file omp-tools.h.

◆ ompt_get_unique_id_t

typedef uint64_t(* ompt_get_unique_id_t) (void)

Definition at line 520 of file omp-tools.h.

◆ ompt_hwid_t

typedef uint64_t ompt_hwid_t

Definition at line 475 of file omp-tools.h.

◆ ompt_id_t

typedef uint64_t ompt_id_t

Definition at line 292 of file omp-tools.h.

◆ ompt_initialize_t

typedef int(* ompt_initialize_t) (ompt_function_lookup_t lookup, int initial_device_num, ompt_data_t *tool_data)

Definition at line 599 of file omp-tools.h.

◆ ompt_interface_fn_t

typedef void(* ompt_interface_fn_t) (void)

Definition at line 563 of file omp-tools.h.

◆ ompt_pause_trace_t

typedef int(* ompt_pause_trace_t) (ompt_device_t *device, int begin_pause)

Definition at line 696 of file omp-tools.h.

◆ ompt_set_callback_t

typedef ompt_set_result_t(* ompt_set_callback_t) (ompt_callbacks_t event, ompt_callback_t callback)

Definition at line 639 of file omp-tools.h.

◆ ompt_set_trace_native_t

typedef ompt_set_result_t(* ompt_set_trace_native_t) (ompt_device_t *device, int enable, int flags)

Definition at line 690 of file omp-tools.h.

◆ ompt_set_trace_ompt_t

typedef ompt_set_result_t(* ompt_set_trace_ompt_t) (ompt_device_t *device, unsigned int enable, unsigned int etype)

Definition at line 686 of file omp-tools.h.

◆ ompt_start_trace_t

typedef int(* ompt_start_trace_t) (ompt_device_t *device, ompt_callback_buffer_request_t request, ompt_callback_buffer_complete_t complete)

Definition at line 692 of file omp-tools.h.

◆ ompt_stop_trace_t

typedef int(* ompt_stop_trace_t) (ompt_device_t *device)

Definition at line 700 of file omp-tools.h.

◆ ompt_translate_time_t

typedef double(* ompt_translate_time_t) (ompt_device_t *device, ompt_device_time_t time)

Definition at line 684 of file omp-tools.h.

◆ ompt_wait_id_t

typedef uint64_t ompt_wait_id_t

Definition at line 477 of file omp-tools.h.

Enumeration Type Documentation

◆ kmp_mutex_impl_t

Enumerator
kmp_mutex_impl_none 
kmp_mutex_impl_spin 
kmp_mutex_impl_queuing 
kmp_mutex_impl_speculative 

Definition at line 216 of file omp-tools.h.

217{
218#define kmp_mutex_impl_macro(impl, code) impl = code,
220#undef kmp_mutex_impl_macro

◆ ompd_rc_t

enum ompd_rc_t
Enumerator
ompd_rc_ok 
ompd_rc_unavailable 
ompd_rc_stale_handle 
ompd_rc_bad_input 
ompd_rc_error 
ompd_rc_unsupported 
ompd_rc_needs_state_tracking 
ompd_rc_incompatible 
ompd_rc_device_read_error 
ompd_rc_device_write_error 
ompd_rc_nomem 
ompd_rc_incomplete 
ompd_rc_callback_error 

Definition at line 546 of file omp-tools.h.

◆ ompd_scope_t

Enumerator
ompd_scope_global 
ompd_scope_address_space 
ompd_scope_thread 
ompd_scope_parallel 
ompd_scope_implicit_task 
ompd_scope_task 

Definition at line 534 of file omp-tools.h.

◆ ompt_callbacks_t

Enumerator
ompt_callback_thread_begin 
ompt_callback_thread_end 
ompt_callback_parallel_begin 
ompt_callback_parallel_end 
ompt_callback_task_create 
ompt_callback_task_schedule 
ompt_callback_implicit_task 
ompt_callback_target 
ompt_callback_target_data_op 
ompt_callback_target_submit 
ompt_callback_control_tool 
ompt_callback_device_initialize 
ompt_callback_device_finalize 
ompt_callback_device_load 
ompt_callback_device_unload 
ompt_callback_sync_region_wait 
ompt_callback_mutex_released 
ompt_callback_dependences 
ompt_callback_task_dependence 
ompt_callback_work 
ompt_callback_master 
ompt_callback_masked 
ompt_callback_target_map 
ompt_callback_sync_region 
ompt_callback_lock_init 
ompt_callback_lock_destroy 
ompt_callback_mutex_acquire 
ompt_callback_mutex_acquired 
ompt_callback_nest_lock 
ompt_callback_flush 
ompt_callback_cancel 
ompt_callback_reduction 
ompt_callback_dispatch 
ompt_callback_target_emi 
ompt_callback_target_data_op_emi 
ompt_callback_target_submit_emi 
ompt_callback_target_map_emi 
ompt_callback_error 

Definition at line 227 of file omp-tools.h.

◆ ompt_cancel_flag_t

Enumerator
ompt_cancel_parallel 
ompt_cancel_sections 
ompt_cancel_loop 
ompt_cancel_taskgroup 
ompt_cancel_activated 
ompt_cancel_detected 
ompt_cancel_discarded_task 

Definition at line 464 of file omp-tools.h.

◆ ompt_dependence_type_t

Enumerator
ompt_dependence_type_in 
ompt_dependence_type_out 
ompt_dependence_type_inout 
ompt_dependence_type_mutexinoutset 
ompt_dependence_type_source 
ompt_dependence_type_sink 
ompt_dependence_type_inoutset 
ompt_dependence_type_out_all_memory 
ompt_dependence_type_inout_all_memory 

Definition at line 445 of file omp-tools.h.

◆ ompt_dispatch_t

Enumerator
ompt_dispatch_iteration 
ompt_dispatch_section 
ompt_dispatch_ws_loop_chunk 
ompt_dispatch_taskloop_chunk 
ompt_dispatch_distribute_chunk 

Definition at line 313 of file omp-tools.h.

◆ ompt_frame_flag_t

Enumerator
ompt_frame_runtime 
ompt_frame_application 
ompt_frame_cfa 
ompt_frame_framepointer 
ompt_frame_stackaddress 

Definition at line 479 of file omp-tools.h.

◆ ompt_mutex_t

Enumerator
ompt_mutex_lock 
ompt_mutex_test_lock 
ompt_mutex_nest_lock 
ompt_mutex_test_nest_lock 
ompt_mutex_critical 
ompt_mutex_atomic 
ompt_mutex_ordered 

Definition at line 366 of file omp-tools.h.

◆ ompt_native_mon_flag_t

Enumerator
ompt_native_data_motion_explicit 
ompt_native_data_motion_implicit 
ompt_native_kernel_invocation 
ompt_native_kernel_execution 
ompt_native_driver 
ompt_native_runtime 
ompt_native_overhead 
ompt_native_idleness 

Definition at line 377 of file omp-tools.h.

◆ ompt_parallel_flag_t

Enumerator
ompt_parallel_invoker_program 
ompt_parallel_invoker_runtime 
ompt_parallel_league 
ompt_parallel_team 

Definition at line 427 of file omp-tools.h.

428{
431 ompt_parallel_league = 0x40000000,
432 ompt_parallel_team = 0x80000000

◆ ompt_record_native_t

Enumerator
ompt_record_native_info 
ompt_record_native_event 

Definition at line 276 of file omp-tools.h.

◆ ompt_record_t

Enumerator
ompt_record_ompt 
ompt_record_native 
ompt_record_invalid 

Definition at line 269 of file omp-tools.h.

◆ ompt_scope_endpoint_t

Enumerator
ompt_scope_begin 
ompt_scope_end 
ompt_scope_beginend 

Definition at line 306 of file omp-tools.h.

◆ ompt_set_result_t

Enumerator
ompt_set_error 
ompt_set_never 
ompt_set_impossible 
ompt_set_sometimes 
ompt_set_sometimes_paired 
ompt_set_always 

Definition at line 282 of file omp-tools.h.

◆ ompt_severity_t

Enumerator
ompt_warning 
ompt_fatal 

Definition at line 458 of file omp-tools.h.

459{
460 ompt_warning = 1,
461 ompt_fatal = 2

◆ ompt_state_t

Enumerator
ompt_state_work_serial 
ompt_state_work_parallel 
ompt_state_work_reduction 
ompt_state_wait_barrier 
ompt_state_wait_barrier_implicit_parallel 
ompt_state_wait_barrier_implicit_workshare 
ompt_state_wait_barrier_implicit 
ompt_state_wait_barrier_explicit 
ompt_state_wait_barrier_implementation 
ompt_state_wait_barrier_teams 
ompt_state_wait_taskwait 
ompt_state_wait_taskgroup 
ompt_state_wait_mutex 
ompt_state_wait_lock 
ompt_state_wait_critical 
ompt_state_wait_atomic 
ompt_state_wait_ordered 
ompt_state_wait_target 
ompt_state_wait_target_map 
ompt_state_wait_target_update 
ompt_state_idle 
ompt_state_overhead 
ompt_state_undefined 

Definition at line 488 of file omp-tools.h.

◆ ompt_sync_region_t

Enumerator
ompt_sync_region_barrier 
ompt_sync_region_barrier_implicit 
ompt_sync_region_barrier_explicit 
ompt_sync_region_barrier_implementation 
ompt_sync_region_taskwait 
ompt_sync_region_taskgroup 
ompt_sync_region_reduction 
ompt_sync_region_barrier_implicit_workshare 
ompt_sync_region_barrier_implicit_parallel 
ompt_sync_region_barrier_teams 

Definition at line 322 of file omp-tools.h.

◆ ompt_target_data_op_t

Enumerator
ompt_target_data_alloc 
ompt_target_data_transfer_to_device 
ompt_target_data_transfer_from_device 
ompt_target_data_delete 
ompt_target_data_associate 
ompt_target_data_disassociate 
ompt_target_data_alloc_async 
ompt_target_data_transfer_to_device_async 
ompt_target_data_transfer_from_device_async 
ompt_target_data_delete_async 

Definition at line 336 of file omp-tools.h.

◆ ompt_target_map_flag_t

Enumerator
ompt_target_map_flag_to 
ompt_target_map_flag_from 
ompt_target_map_flag_alloc 
ompt_target_map_flag_release 
ompt_target_map_flag_delete 
ompt_target_map_flag_implicit 

Definition at line 435 of file omp-tools.h.

◆ ompt_target_t

Enumerator
ompt_target 
ompt_target_enter_data 
ompt_target_exit_data 
ompt_target_update 
ompt_target_nowait 
ompt_target_enter_data_nowait 
ompt_target_exit_data_nowait 
ompt_target_update_nowait 

Definition at line 415 of file omp-tools.h.

◆ ompt_task_flag_t

Enumerator
ompt_task_initial 
ompt_task_implicit 
ompt_task_explicit 
ompt_task_target 
ompt_task_taskwait 
ompt_task_undeferred 
ompt_task_untied 
ompt_task_final 
ompt_task_mergeable 
ompt_task_merged 

Definition at line 389 of file omp-tools.h.

390{
391 ompt_task_initial = 0x00000001,
392 ompt_task_implicit = 0x00000002,
393 ompt_task_explicit = 0x00000004,
394 ompt_task_target = 0x00000008,
395 ompt_task_taskwait = 0x00000010,
396 ompt_task_undeferred = 0x08000000,
397 ompt_task_untied = 0x10000000,
398 ompt_task_final = 0x20000000,
399 ompt_task_mergeable = 0x40000000,
400 ompt_task_merged = 0x80000000

◆ ompt_task_status_t

Enumerator
ompt_task_complete 
ompt_task_yield 
ompt_task_cancel 
ompt_task_detach 
ompt_task_early_fulfill 
ompt_task_late_fulfill 
ompt_task_switch 
ompt_taskwait_complete 

Definition at line 403 of file omp-tools.h.

◆ ompt_thread_t

Enumerator
ompt_thread_initial 
ompt_thread_worker 
ompt_thread_other 
ompt_thread_unknown 

Definition at line 298 of file omp-tools.h.

◆ ompt_work_t

Enumerator
ompt_work_loop 
ompt_work_sections 
ompt_work_single_executor 
ompt_work_single_other 
ompt_work_workshare 
ompt_work_distribute 
ompt_work_taskloop 
ompt_work_scope 
ompt_work_loop_static 
ompt_work_loop_dynamic 
ompt_work_loop_guided 
ompt_work_loop_other 

Definition at line 350 of file omp-tools.h.

Function Documentation

◆ ompd_bp_device_begin()

void ompd_bp_device_begin ( void  )

◆ ompd_bp_device_end()

void ompd_bp_device_end ( void  )

◆ ompd_bp_parallel_begin()

void ompd_bp_parallel_begin ( void  )

◆ ompd_bp_parallel_end()

void ompd_bp_parallel_end ( void  )

◆ ompd_bp_task_begin()

void ompd_bp_task_begin ( void  )

◆ ompd_bp_task_end()

void ompd_bp_task_end ( void  )

◆ ompd_bp_thread_begin()

void ompd_bp_thread_begin ( void  )

◆ ompd_bp_thread_end()

void ompd_bp_thread_end ( void  )

◆ ompd_device_initialize()

ompd_rc_t ompd_device_initialize ( ompd_address_space_handle_t process_handle,
ompd_address_space_context_t device_context,
ompd_device_t  kind,
ompd_size_t  sizeof_id,
void *  id,
ompd_address_space_handle_t **  device_handle 
)

◆ ompd_dll_locations_valid()

void ompd_dll_locations_valid ( void  )

◆ ompd_enumerate_icvs()

ompd_rc_t ompd_enumerate_icvs ( ompd_address_space_handle_t handle,
ompd_icv_id_t  current,
ompd_icv_id_t next_id,
const char **  next_icv_name,
ompd_scope_t next_scope,
int *  more 
)

◆ ompd_enumerate_states()

ompd_rc_t ompd_enumerate_states ( ompd_address_space_handle_t address_space_handle,
ompd_word_t  current_state,
ompd_word_t next_state,
const char **  next_state_name,
ompd_word_t more_enums 
)

◆ ompd_finalize()

ompd_rc_t ompd_finalize ( void  )

◆ ompd_get_api_version()

ompd_rc_t ompd_get_api_version ( ompd_word_t version)

◆ ompd_get_curr_parallel_handle()

ompd_rc_t ompd_get_curr_parallel_handle ( ompd_thread_handle_t thread_handle,
ompd_parallel_handle_t **  parallel_handle 
)

◆ ompd_get_curr_task_handle()

ompd_rc_t ompd_get_curr_task_handle ( ompd_thread_handle_t thread_handle,
ompd_task_handle_t **  task_handle 
)

◆ ompd_get_display_control_vars()

ompd_rc_t ompd_get_display_control_vars ( ompd_address_space_handle_t address_space_handle,
const char *const **  control_vars 
)

◆ ompd_get_enclosing_parallel_handle()

ompd_rc_t ompd_get_enclosing_parallel_handle ( ompd_parallel_handle_t parallel_handle,
ompd_parallel_handle_t **  enclosing_parallel_handle 
)

◆ ompd_get_generating_task_handle()

ompd_rc_t ompd_get_generating_task_handle ( ompd_task_handle_t task_handle,
ompd_task_handle_t **  generating_task_handle 
)

◆ ompd_get_icv_from_scope()

ompd_rc_t ompd_get_icv_from_scope ( void *  handle,
ompd_scope_t  scope,
ompd_icv_id_t  icv_id,
ompd_word_t icv_value 
)

◆ ompd_get_icv_string_from_scope()

ompd_rc_t ompd_get_icv_string_from_scope ( void *  handle,
ompd_scope_t  scope,
ompd_icv_id_t  icv_id,
const char **  icv_string 
)

◆ ompd_get_omp_version()

ompd_rc_t ompd_get_omp_version ( ompd_address_space_handle_t address_space,
ompd_word_t omp_version 
)

◆ ompd_get_omp_version_string()

ompd_rc_t ompd_get_omp_version_string ( ompd_address_space_handle_t address_space,
const char **  string 
)

◆ ompd_get_scheduling_task_handle()

ompd_rc_t ompd_get_scheduling_task_handle ( ompd_task_handle_t task_handle,
ompd_task_handle_t **  scheduling_task_handle 
)

◆ ompd_get_state()

ompd_rc_t ompd_get_state ( ompd_thread_handle_t thread_handle,
ompd_word_t state,
ompd_wait_id_t wait_id 
)

◆ ompd_get_task_frame()

ompd_rc_t ompd_get_task_frame ( ompd_task_handle_t task_handle,
ompd_frame_info_t exit_frame,
ompd_frame_info_t enter_frame 
)

◆ ompd_get_task_function()

ompd_rc_t ompd_get_task_function ( ompd_task_handle_t task_handle,
ompd_address_t entry_point 
)

◆ ompd_get_task_in_parallel()

ompd_rc_t ompd_get_task_in_parallel ( ompd_parallel_handle_t parallel_handle,
int  thread_num,
ompd_task_handle_t **  task_handle 
)

◆ ompd_get_task_parallel_handle()

ompd_rc_t ompd_get_task_parallel_handle ( ompd_task_handle_t task_handle,
ompd_parallel_handle_t **  task_parallel_handle 
)

◆ ompd_get_thread_handle()

ompd_rc_t ompd_get_thread_handle ( ompd_address_space_handle_t handle,
ompd_thread_id_t  kind,
ompd_size_t  sizeof_thread_id,
const void *  thread_id,
ompd_thread_handle_t **  thread_handle 
)

◆ ompd_get_thread_id()

ompd_rc_t ompd_get_thread_id ( ompd_thread_handle_t thread_handle,
ompd_thread_id_t  kind,
ompd_size_t  sizeof_thread_id,
void *  thread_id 
)

◆ ompd_get_thread_in_parallel()

ompd_rc_t ompd_get_thread_in_parallel ( ompd_parallel_handle_t parallel_handle,
int  thread_num,
ompd_thread_handle_t **  thread_handle 
)

◆ ompd_get_tool_data()

ompd_rc_t ompd_get_tool_data ( void *  handle,
ompd_scope_t  scope,
ompd_word_t value,
ompd_address_t ptr 
)

◆ ompd_get_version_string()

ompd_rc_t ompd_get_version_string ( const char **  string)

◆ ompd_initialize()

ompd_rc_t ompd_initialize ( ompd_word_t  api_version,
const ompd_callbacks_t callbacks 
)

◆ ompd_parallel_handle_compare()

ompd_rc_t ompd_parallel_handle_compare ( ompd_parallel_handle_t parallel_handle_1,
ompd_parallel_handle_t parallel_handle_2,
int *  cmp_value 
)

◆ ompd_process_initialize()

ompd_rc_t ompd_process_initialize ( ompd_address_space_context_t context,
ompd_address_space_handle_t **  handle 
)

◆ ompd_rel_address_space_handle()

ompd_rc_t ompd_rel_address_space_handle ( ompd_address_space_handle_t handle)

◆ ompd_rel_display_control_vars()

ompd_rc_t ompd_rel_display_control_vars ( const char *const **  control_vars)

◆ ompd_rel_parallel_handle()

ompd_rc_t ompd_rel_parallel_handle ( ompd_parallel_handle_t parallel_handle)

◆ ompd_rel_task_handle()

ompd_rc_t ompd_rel_task_handle ( ompd_task_handle_t task_handle)

◆ ompd_rel_thread_handle()

ompd_rc_t ompd_rel_thread_handle ( ompd_thread_handle_t thread_handle)

◆ ompd_task_handle_compare()

ompd_rc_t ompd_task_handle_compare ( ompd_task_handle_t task_handle_1,
ompd_task_handle_t task_handle_2,
int *  cmp_value 
)

◆ ompd_thread_handle_compare()

ompd_rc_t ompd_thread_handle_compare ( ompd_thread_handle_t thread_handle_1,
ompd_thread_handle_t thread_handle_2,
int *  cmp_value 
)