rocprofiler-sdk/ompt/omp-tools.h Source File#
Rocprofiler SDK Developer API 0.6.0
ROCm Profiling API and tools
|
omp-tools.h
Go to the documentation of this file.
639typedef ompt_set_result_t (*ompt_set_callback_t)(ompt_callbacks_t event, ompt_callback_t callback);
690typedef ompt_set_result_t (*ompt_set_trace_native_t)(ompt_device_t* device, int enable, int flags);
717typedef void (*ompt_callback_thread_begin_t)(ompt_thread_t thread_type, ompt_data_t* thread_data);
923typedef void (*ompt_callback_cancel_t)(ompt_data_t* task_data, int flags, const void* codeptr_ra);
1124typedef ompd_rc_t (*ompd_callback_sizeof_fn_t)(ompd_address_space_context_t* address_space_context,
1276ompd_get_curr_task_handle(ompd_thread_handle_t* thread_handle, ompd_task_handle_t** task_handle);
1315ompd_get_state(ompd_thread_handle_t* thread_handle, ompd_word_t* state, ompd_wait_id_t* wait_id);
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
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_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)
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
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)
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_id_t encountering_task_id
Definition omp-tools.h:794
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
unsigned int granted_num_teams
Definition omp-tools.h:1051
int(* ompt_get_place_proc_ids_t)(int place_num, int ids_size, int *ids)
Definition omp-tools.h:649
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
void ompd_bp_device_begin(void)
void(* ompt_callback_device_unload_t)(int device_num, uint64_t module_id)
Definition omp-tools.h:949
void ompd_bp_thread_begin(void)
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)
void(* ompt_callback_error_t)(ompt_severity_t severity, const char *message, unsigned long length, const void *codeptr_ra)
Definition omp-tools.h:1067
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
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
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_dependence_type_inout_all_memory
Definition omp-tools.h:455
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
void ompd_dll_locations_valid(void)
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)
ompd_rc_t ompd_get_version_string(const char **string)
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)
void ompd_bp_parallel_end(void)
ompt_task_status_t prior_task_status
Definition omp-tools.h:828
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_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_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
ompt_id_t encountering_task_id
Definition omp-tools.h:735
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
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_transfer_from_device_async
Definition omp-tools.h:346
@ 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_barrier_implementation
Definition omp-tools.h:327
@ ompt_sync_region_barrier_implicit_parallel
Definition omp-tools.h:332
@ ompt_sync_region_barrier_implicit_workshare
Definition omp-tools.h:331
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_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_id_t encountering_task_id
Definition omp-tools.h:750
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
void ompd_bp_parallel_begin(void)
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)
struct _ompd_aspace_cont ompd_address_space_context_t
Definition omp-tools.h:1097
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)
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
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_wait_barrier_implementation
Definition omp-tools.h:499
@ ompt_state_wait_barrier_implicit_parallel
Definition omp-tools.h:495
@ ompt_state_wait_barrier_implicit_workshare
Definition omp-tools.h:496
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)
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
ompt_device_time_t(* ompt_get_device_time_t)(ompt_device_t *device)
Definition omp-tools.h:682
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
void(* ompt_callback_mutex_t)(ompt_mutex_t kind, ompt_wait_id_t wait_id, const void *codeptr_ra)
Definition omp-tools.h:894
ompd_rc_t ompd_rel_address_space_handle(ompd_address_space_handle_t *handle)
void(* ompt_callback_dependences_t)(ompt_data_t *task_data, const ompt_dependence_t *deps, int ndeps)
Definition omp-tools.h:801
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
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
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)
ompd_rc_t ompd_thread_handle_compare(ompd_thread_handle_t *thread_handle_1, ompd_thread_handle_t *thread_handle_2, int *cmp_value)
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_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(* 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
void(* ompt_callback_task_dependence_t)(ompt_data_t *src_task_data, ompt_data_t *sink_task_data)
Definition omp-tools.h:812
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
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
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
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_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)
Definition omp-tools.h:1081
Definition omp-tools.h:1158
Definition omp-tools.h:1101
Definition omp-tools.h:1087
Definition omp-tools.h:620
Definition omp-tools.h:626
Definition omp-tools.h:574
Definition omp-tools.h:611
Definition omp-tools.h:926
Definition omp-tools.h:1061
Definition omp-tools.h:806
Definition omp-tools.h:778
Definition omp-tools.h:1073
Definition omp-tools.h:919
Definition omp-tools.h:840
Definition omp-tools.h:857
Definition omp-tools.h:886
Definition omp-tools.h:899
Definition omp-tools.h:910
Definition omp-tools.h:1348
Definition omp-tools.h:734
Definition omp-tools.h:748
Definition omp-tools.h:871
Definition omp-tools.h:974
Definition omp-tools.h:1048
Definition omp-tools.h:1028
Definition omp-tools.h:1002
Definition omp-tools.h:793
Definition omp-tools.h:816
Definition omp-tools.h:826
Definition omp-tools.h:720
Definition omp-tools.h:763
Definition omp-tools.h:604
Definition omp-tools.h:568
Generated by 1.9.8