LLVM OpenMP 22.0.0git
|
#include <stdio.h>
#include <inttypes.h>
#include <omp.h>
#include <omp-tools.h>
#include "ompt-signal.h"
#include <stdlib.h>
#include <assert.h>
#include "../../src/kmp_platform.h"
Go to the source code of this file.
Macros | |
#define | _DEFAULT_SOURCE |
#define | __STDC_FORMAT_MACROS |
#define | _TOOL_PREFIX "" |
#define | _OMPT_TESTS |
#define | get_frame_address(level) |
#define | print_frame(level) |
#define | define_ompt_label(id) |
#define | get_ompt_label_address(id) |
#define | print_current_address(id) |
#define | print_fuzzy_address(id) |
#define | FUZZY_ADDRESS_DISCARD_NIBBLES 2 |
#define | FUZZY_ADDRESS_DISCARD_BYTES (1 << ((FUZZY_ADDRESS_DISCARD_NIBBLES) * 4)) |
#define | print_fuzzy_address_blocks(addr) |
#define | register_ompt_callback_t(name, type) |
#define | register_ompt_callback(name) |
Functions | |
static void | format_task_type (int type, char *buffer) |
void | assert_frame_flags (int enterf, int exitf) |
static void | print_ids (int level) |
static void | on_ompt_callback_mutex_acquire (ompt_mutex_t kind, unsigned int hint, unsigned int impl, ompt_wait_id_t wait_id, const void *codeptr_ra) |
static void | on_ompt_callback_mutex_acquired (ompt_mutex_t kind, ompt_wait_id_t wait_id, const void *codeptr_ra) |
static void | on_ompt_callback_mutex_released (ompt_mutex_t kind, ompt_wait_id_t wait_id, const void *codeptr_ra) |
static void | on_ompt_callback_nest_lock (ompt_scope_endpoint_t endpoint, ompt_wait_id_t wait_id, const void *codeptr_ra) |
static void | on_ompt_callback_sync_region (ompt_sync_region_t kind, ompt_scope_endpoint_t endpoint, ompt_data_t *parallel_data, ompt_data_t *task_data, const void *codeptr_ra) |
static void | on_ompt_callback_sync_region_wait (ompt_sync_region_t kind, ompt_scope_endpoint_t endpoint, ompt_data_t *parallel_data, ompt_data_t *task_data, const void *codeptr_ra) |
static void | on_ompt_callback_reduction (ompt_sync_region_t kind, ompt_scope_endpoint_t endpoint, ompt_data_t *parallel_data, ompt_data_t *task_data, const void *codeptr_ra) |
static void | on_ompt_callback_flush (ompt_data_t *thread_data, const void *codeptr_ra) |
static void | on_ompt_callback_cancel (ompt_data_t *task_data, int flags, const void *codeptr_ra) |
static void | on_ompt_callback_implicit_task (ompt_scope_endpoint_t endpoint, ompt_data_t *parallel_data, ompt_data_t *task_data, unsigned int team_size, unsigned int thread_num, int flags) |
static void | on_ompt_callback_lock_init (ompt_mutex_t kind, unsigned int hint, unsigned int impl, ompt_wait_id_t wait_id, const void *codeptr_ra) |
static void | on_ompt_callback_lock_destroy (ompt_mutex_t kind, ompt_wait_id_t wait_id, const void *codeptr_ra) |
static void | on_ompt_callback_work (ompt_work_t wstype, ompt_scope_endpoint_t endpoint, ompt_data_t *parallel_data, ompt_data_t *task_data, uint64_t count, const void *codeptr_ra) |
static void | on_ompt_callback_dispatch (ompt_data_t *parallel_data, ompt_data_t *task_data, ompt_dispatch_t kind, ompt_data_t instance) |
static void | on_ompt_callback_masked (ompt_scope_endpoint_t endpoint, ompt_data_t *parallel_data, ompt_data_t *task_data, const void *codeptr_ra) |
static void | on_ompt_callback_parallel_begin (ompt_data_t *encountering_task_data, const ompt_frame_t *encountering_task_frame, ompt_data_t *parallel_data, uint32_t requested_team_size, int flag, const void *codeptr_ra) |
static void | on_ompt_callback_parallel_end (ompt_data_t *parallel_data, ompt_data_t *encountering_task_data, int flag, const void *codeptr_ra) |
static void | on_ompt_callback_task_create (ompt_data_t *encountering_task_data, const ompt_frame_t *encountering_task_frame, ompt_data_t *new_task_data, int type, int has_dependences, const void *codeptr_ra) |
static void | on_ompt_callback_task_schedule (ompt_data_t *first_task_data, ompt_task_status_t prior_task_status, ompt_data_t *second_task_data) |
static void | on_ompt_callback_dependences (ompt_data_t *task_data, const ompt_dependence_t *deps, int ndeps) |
static void | on_ompt_callback_task_dependence (ompt_data_t *first_task_data, ompt_data_t *second_task_data) |
static void | on_ompt_callback_thread_begin (ompt_thread_t thread_type, ompt_data_t *thread_data) |
static void | on_ompt_callback_thread_end (ompt_data_t *thread_data) |
static int | on_ompt_callback_control_tool (uint64_t command, uint64_t modifier, void *arg, const void *codeptr_ra) |
static void | on_ompt_callback_error (ompt_severity_t severity, const char *message, size_t length, const void *codeptr_ra) |
int | ompt_initialize (ompt_function_lookup_t lookup, int initial_device_num, ompt_data_t *tool_data) |
void | ompt_finalize (ompt_data_t *tool_data) |
ompt_start_tool_result_t * | ompt_start_tool (unsigned int omp_version, const char *runtime_version) |
Variables | |
static const char * | ompt_thread_t_values [] |
static const char * | ompt_task_status_t_values [] |
static const char * | ompt_cancel_flag_t_values [] |
static const char * | ompt_work_t_values [] |
static const char * | ompt_work_events_t_values [] |
static const char * | ompt_dependence_type_t_values [36] |
static const char * | ompt_sync_region_t_values [] |
static ompt_set_callback_t | ompt_set_callback |
static ompt_get_callback_t | ompt_get_callback |
static ompt_get_state_t | ompt_get_state |
static ompt_get_task_info_t | ompt_get_task_info |
static ompt_get_task_memory_t | ompt_get_task_memory |
static ompt_get_thread_data_t | ompt_get_thread_data |
static ompt_get_parallel_info_t | ompt_get_parallel_info |
static ompt_get_unique_id_t | ompt_get_unique_id |
static ompt_finalize_tool_t | ompt_finalize_tool |
static ompt_get_num_procs_t | ompt_get_num_procs |
static ompt_get_num_places_t | ompt_get_num_places |
static ompt_get_place_proc_ids_t | ompt_get_place_proc_ids |
static ompt_get_place_num_t | ompt_get_place_num |
static ompt_get_partition_place_nums_t | ompt_get_partition_place_nums |
static ompt_get_proc_id_t | ompt_get_proc_id |
static ompt_enumerate_states_t | ompt_enumerate_states |
static ompt_enumerate_mutex_impls_t | ompt_enumerate_mutex_impls |
#define __STDC_FORMAT_MACROS |
Definition at line 9 of file callback.h.
#define _DEFAULT_SOURCE |
Definition at line 5 of file callback.h.
#define _OMPT_TESTS |
Definition at line 24 of file callback.h.
#define _TOOL_PREFIX "" |
Definition at line 22 of file callback.h.
Referenced by on_ompt_callback_cancel(), on_ompt_callback_control_tool(), on_ompt_callback_dependences(), on_ompt_callback_dispatch(), on_ompt_callback_flush(), on_ompt_callback_implicit_task(), on_ompt_callback_lock_destroy(), on_ompt_callback_lock_init(), on_ompt_callback_masked(), on_ompt_callback_master(), on_ompt_callback_mutex_acquire(), on_ompt_callback_mutex_acquired(), on_ompt_callback_mutex_released(), on_ompt_callback_nest_lock(), on_ompt_callback_parallel_begin(), on_ompt_callback_parallel_begin(), on_ompt_callback_parallel_end(), on_ompt_callback_reduction(), on_ompt_callback_sync_region(), on_ompt_callback_sync_region_wait(), on_ompt_callback_task_create(), on_ompt_callback_task_dependence(), on_ompt_callback_task_schedule(), on_ompt_callback_thread_begin(), on_ompt_callback_thread_begin(), on_ompt_callback_thread_begin(), on_ompt_callback_thread_end(), and on_ompt_callback_work().
#define define_ompt_label | ( | id | ) |
Definition at line 242 of file callback.h.
Referenced by main().
#define FUZZY_ADDRESS_DISCARD_BYTES (1 << ((FUZZY_ADDRESS_DISCARD_NIBBLES) * 4)) |
Definition at line 366 of file callback.h.
#define FUZZY_ADDRESS_DISCARD_NIBBLES 2 |
Definition at line 365 of file callback.h.
#define get_frame_address | ( | level | ) |
Definition at line 208 of file callback.h.
Referenced by main().
#define get_ompt_label_address | ( | id | ) |
#define print_current_address | ( | id | ) |
Definition at line 255 of file callback.h.
Referenced by main().
#define print_frame | ( | level | ) |
Definition at line 210 of file callback.h.
Referenced by main().
#define print_fuzzy_address | ( | id | ) |
#define print_fuzzy_address_blocks | ( | addr | ) |
Definition at line 367 of file callback.h.
Referenced by main().
#define register_ompt_callback | ( | name | ) |
Definition at line 383 of file callback.h.
Referenced by ompt_cds_initialize(), and ompt_initialize().
Definition at line 376 of file callback.h.
Referenced by ompt_cds_initialize(), and ompt_initialize().
Definition at line 171 of file callback.h.
Referenced by print_ids().
Definition at line 129 of file callback.h.
References type.
Referenced by __attribute__(), on_ompt_callback_implicit_task(), on_ompt_callback_task_create(), and print_ids().
void ompt_finalize | ( | ompt_data_t * | tool_data | ) |
Definition at line 1081 of file callback.h.
Referenced by ompt_start_tool().
int ompt_initialize | ( | ompt_function_lookup_t | lookup, |
int | initial_device_num, | ||
ompt_data_t * | tool_data ) |
Definition at line 1021 of file callback.h.
References ompt_enumerate_mutex_impls, ompt_enumerate_states, ompt_finalize_tool, ompt_get_callback, ompt_get_num_places, ompt_get_num_procs, ompt_get_parallel_info, ompt_get_partition_place_nums, ompt_get_place_num, ompt_get_place_proc_ids, ompt_get_proc_id, ompt_get_state, ompt_get_task_info, ompt_get_task_memory, ompt_get_thread_data, ompt_get_unique_id, ompt_set_callback, register_ompt_callback, and register_ompt_callback_t.
Referenced by ompt_cds_initialize(), and ompt_start_tool().
ompt_start_tool_result_t * ompt_start_tool | ( | unsigned int | omp_version, |
const char * | runtime_version ) |
Definition at line 1088 of file callback.h.
References ompt_finalize(), ompt_initialize(), and ompt_start_tool_result.
Definition at line 635 of file callback.h.
References _TOOL_PREFIX, ompt_cancel_flag_t_values, ompt_get_thread_data, and value.
Referenced by on_cds_ompt_callback_cancel().
|
static |
Definition at line 975 of file callback.h.
References _TOOL_PREFIX, ompt_get_parallel_info, ompt_get_task_info, ompt_get_thread_data, and value.
|
static |
Definition at line 925 of file callback.h.
References _TOOL_PREFIX, i, ompt_dependence_type_t_values, ompt_get_thread_data, and value.
Referenced by on_cds_ompt_callback_dependences().
|
static |
Definition at line 788 of file callback.h.
References _TOOL_PREFIX, instance, ompt_get_thread_data, and value.
|
static |
Definition at line 1012 of file callback.h.
References length, ompt_get_thread_data, and value.
Definition at line 629 of file callback.h.
References _TOOL_PREFIX.
|
static |
Definition at line 661 of file callback.h.
References _TOOL_PREFIX, format_task_type(), ompt_get_thread_data, ompt_get_unique_id, and value.
Referenced by on_cds_ompt_callback_implicit_task().
|
static |
Definition at line 744 of file callback.h.
References _TOOL_PREFIX, ompt_get_thread_data, and value.
|
static |
Definition at line 723 of file callback.h.
References _TOOL_PREFIX, ompt_get_thread_data, and value.
|
static |
Definition at line 824 of file callback.h.
References _TOOL_PREFIX, ompt_get_thread_data, and value.
Referenced by on_cds_ompt_callback_master().
|
static |
Definition at line 386 of file callback.h.
References _TOOL_PREFIX, ompt_get_thread_data, and value.
|
static |
Definition at line 437 of file callback.h.
References _TOOL_PREFIX, ompt_get_thread_data, and value.
|
static |
Definition at line 486 of file callback.h.
References _TOOL_PREFIX, ompt_get_thread_data, and value.
|
static |
Definition at line 522 of file callback.h.
References _TOOL_PREFIX, ompt_get_thread_data, and value.
|
static |
Definition at line 849 of file callback.h.
References _TOOL_PREFIX, event, flag, ompt_get_thread_data, ompt_get_unique_id, size, and value.
Referenced by on_cds_ompt_callback_parallel_begin().
|
static |
Definition at line 870 of file callback.h.
References _TOOL_PREFIX, event, flag, ompt_get_thread_data, and value.
Referenced by on_cds_ompt_callback_parallel_end().
|
static |
Definition at line 601 of file callback.h.
References _TOOL_PREFIX, ompt_get_thread_data, and value.
|
static |
Definition at line 544 of file callback.h.
References _TOOL_PREFIX, ompt_get_thread_data, ompt_sync_region_t_values, print_ids(), and value.
Referenced by on_cds_ompt_callback_sync_region().
|
static |
Definition at line 578 of file callback.h.
References _TOOL_PREFIX, ompt_get_thread_data, ompt_sync_region_t_values, and value.
Referenced by on_cds_ompt_callback_sync_region_wait().
|
static |
Definition at line 882 of file callback.h.
References _TOOL_PREFIX, format_task_type(), ompt_get_thread_data, ompt_get_unique_id, type, and value.
Referenced by on_cds_ompt_callback_task_create().
|
static |
Definition at line 949 of file callback.h.
References _TOOL_PREFIX, ompt_get_thread_data, and value.
Referenced by on_cds_ompt_callback_task_dependence().
|
static |
Definition at line 907 of file callback.h.
References _TOOL_PREFIX, ompt_get_thread_data, ompt_task_status_t_values, and value.
Referenced by on_cds_ompt_callback_task_schedule().
|
static |
Definition at line 958 of file callback.h.
References _TOOL_PREFIX, ompt_get_thread_data, ompt_get_unique_id, ompt_thread_t_values, and value.
Referenced by main(), and on_cds_ompt_callback_thread_begin().
|
static |
Definition at line 969 of file callback.h.
References _TOOL_PREFIX, ompt_get_thread_data, and value.
Referenced by on_cds_ompt_callback_thread_end().
|
static |
Definition at line 764 of file callback.h.
References _TOOL_PREFIX, count, ompt_get_thread_data, ompt_work_events_t_values, and value.
Referenced by on_cds_ompt_callback_work().
Definition at line 187 of file callback.h.
References assert_frame_flags(), format_task_type(), frame, level, ompt_get_task_info, ompt_get_thread_data, and value.
Referenced by main(), and on_ompt_callback_sync_region().
|
static |
Definition at line 42 of file callback.h.
Referenced by on_ompt_callback_cancel().
|
static |
Definition at line 78 of file callback.h.
Referenced by on_ompt_callback_dependences().
|
static |
Definition at line 169 of file callback.h.
Referenced by f(), main(), and ompt_initialize().
|
static |
Definition at line 168 of file callback.h.
Referenced by f(), main(), and ompt_initialize().
|
static |
Definition at line 161 of file callback.h.
Referenced by main(), and ompt_initialize().
|
static |
Definition at line 154 of file callback.h.
Referenced by f(), main(), ompt_initialize(), and ompt_libomp_target_fn_lookup().
|
static |
Definition at line 163 of file callback.h.
Referenced by f(), main(), and ompt_initialize().
|
static |
Definition at line 162 of file callback.h.
Referenced by f(), main(), and ompt_initialize().
|
static |
Definition at line 159 of file callback.h.
Referenced by DECLARE_TSAN_FUNCTION(), f(), ompt_initialize(), ompt_tsan_initialize(), ompt_tsan_task_create(), on_cds_ompt_callback_control_tool(), and on_ompt_callback_control_tool().
|
static |
Definition at line 166 of file callback.h.
Referenced by f(), main(), and ompt_initialize().
|
static |
Definition at line 165 of file callback.h.
Referenced by f(), main(), and ompt_initialize().
|
static |
Definition at line 164 of file callback.h.
Referenced by f(), main(), and ompt_initialize().
|
static |
Definition at line 167 of file callback.h.
Referenced by f(), main(), and ompt_initialize().
|
static |
Definition at line 155 of file callback.h.
Referenced by f(), main(), and ompt_initialize().
|
static |
Definition at line 156 of file callback.h.
Referenced by __attribute__(), f(), ompt_initialize(), on_cds_ompt_callback_control_tool(), on_ompt_callback_control_tool(), and print_ids().
|
static |
Definition at line 157 of file callback.h.
Referenced by ompt_initialize(), on_ompt_callback_implicit_task(), and on_ompt_callback_task_schedule().
|
static |
Definition at line 158 of file callback.h.
Referenced by __attribute__(), f(), main(), ompt_cds_initialize(), ompt_initialize(), ompt_tsan_initialize(), on_cds_ompt_callback_control_tool(), on_ompt_callback_cancel(), on_ompt_callback_control_tool(), on_ompt_callback_dependences(), on_ompt_callback_dispatch(), on_ompt_callback_error(), on_ompt_callback_implicit_task(), on_ompt_callback_lock_destroy(), on_ompt_callback_lock_init(), on_ompt_callback_masked(), on_ompt_callback_master(), on_ompt_callback_mutex_acquire(), on_ompt_callback_mutex_acquired(), on_ompt_callback_mutex_released(), on_ompt_callback_nest_lock(), on_ompt_callback_parallel_begin(), on_ompt_callback_parallel_begin(), on_ompt_callback_parallel_end(), on_ompt_callback_reduction(), on_ompt_callback_sync_region(), on_ompt_callback_sync_region_wait(), on_ompt_callback_task_create(), on_ompt_callback_task_dependence(), on_ompt_callback_task_schedule(), on_ompt_callback_thread_begin(), on_ompt_callback_thread_begin(), on_ompt_callback_thread_begin(), on_ompt_callback_thread_end(), on_ompt_callback_work(), print_ids(), and print_list().
|
static |
Definition at line 160 of file callback.h.
Referenced by ompt_initialize(), on_ompt_callback_implicit_task(), on_ompt_callback_implicit_task(), on_ompt_callback_parallel_begin(), on_ompt_callback_parallel_begin(), on_ompt_callback_task_create(), on_ompt_callback_task_create(), on_ompt_callback_thread_begin(), on_ompt_callback_thread_begin(), and on_ompt_callback_thread_begin().
|
static |
Definition at line 153 of file callback.h.
Referenced by main(), ompt_initialize(), and ompt_tsan_initialize().
|
static |
Definition at line 117 of file callback.h.
Referenced by on_ompt_callback_sync_region(), and on_ompt_callback_sync_region_wait().
|
static |
Definition at line 31 of file callback.h.
Referenced by on_ompt_callback_task_schedule().
|
static |
Definition at line 27 of file callback.h.
Referenced by on_ompt_callback_thread_begin(), on_ompt_callback_thread_begin(), on_ompt_callback_thread_begin(), and on_ompt_callback_thread_begin().
|
static |
Definition at line 63 of file callback.h.
Referenced by on_ompt_callback_work().
|
static |
Definition at line 48 of file callback.h.