3#define ompt_start_tool disable_ompt_start_tool
4#define _TOOL_PREFIX " _first_tool:"
9#define CLIENT_TOOL_LIBRARIES_VAR "CUSTOM_DATA_STORAGE_TOOL_LIBRARIES"
12#define OMPT_MULTIPLEX_CUSTOM_GET_CLIENT_THREAD_DATA custom_get_client_ompt_data
13#define OMPT_MULTIPLEX_CUSTOM_DELETE_THREAD_DATA free_data_pair
14#define OMPT_MULTIPLEX_CUSTOM_GET_CLIENT_PARALLEL_DATA \
15 custom_get_client_ompt_data
16#define OMPT_MULTIPLEX_CUSTOM_DELETE_PARALLEL_DATA free_data_pair
17#define OMPT_MULTIPLEX_CUSTOM_GET_CLIENT_TASK_DATA custom_get_client_ompt_data
18#define OMPT_MULTIPLEX_CUSTOM_DELETE_TASK_DATA free_data_pair
43 if (!data_pointer->ptr) {
44 printf(
"Malloc ERROR\n");
55 free((*data_pointer).ptr);
59 ompt_scope_endpoint_t endpoint,
60 ompt_data_t *parallel_data,
61 ompt_data_t *task_data,
62 const void *codeptr_ra) {
70 ompt_sync_region_t kind, ompt_scope_endpoint_t endpoint,
71 ompt_data_t *parallel_data, ompt_data_t *task_data,
72 const void *codeptr_ra) {
80 const void *codeptr_ra) {
86 const void *codeptr_ra) {
92 ompt_data_t *parallel_data,
93 ompt_data_t *task_data,
94 unsigned int team_size,
95 unsigned int thread_num,
97 if (endpoint == ompt_scope_begin && (
type & ompt_task_initial)) {
100 if (endpoint == ompt_scope_begin) {
110 ompt_scope_endpoint_t endpoint,
111 ompt_data_t *parallel_data,
112 ompt_data_t *task_data, uint64_t
count,
113 const void *codeptr_ra) {
121 ompt_data_t *parallel_data,
122 ompt_data_t *task_data,
123 const void *codeptr_ra) {
130 ompt_data_t *parent_task_data,
const ompt_frame_t *parent_task_frame,
131 ompt_data_t *parallel_data, uint32_t requested_team_size,
int invoker,
132 const void *codeptr_ra) {
134 if (parallel_data->ptr)
135 printf(
"%s\n",
"0: parallel_data initially not null");
139 parallel_data, requested_team_size, invoker,
144 ompt_data_t *task_data,
146 const void *codeptr_ra) {
153 const ompt_frame_t *parent_frame,
154 ompt_data_t *new_task_data,
155 int type,
int has_dependences,
156 const void *codeptr_ra) {
158 if (new_task_data->ptr)
159 printf(
"%s\n",
"0: new_task_data initially not null");
163 type, has_dependences, codeptr_ra);
168 ompt_task_status_t prior_task_status,
169 ompt_data_t *second_task_data) {
170 ompt_data_t *original_first_task_data = first_task_data;
178 const ompt_dependence_t *deps,
186 ompt_data_t *second_task_data) {
193 ompt_data_t *thread_data) {
194 if (thread_data->ptr)
195 printf(
"%s\n",
"0: thread_data initially not null");
207 uint64_t modifier,
void *arg,
208 const void *codeptr_ra) {
209 printf(
"%" PRIu64
": _first_tool: ompt_event_control_tool: command=%" PRIu64
210 ", modifier=%" PRIu64
", arg=%p, codeptr_ra=%p \n",
215 ompt_data_t *task_data;
219 printf(
"%" PRIu64
": _first_tool: task level %d: task_id=%" PRIu64
"\n",
225 int parallel_level = 0;
226 ompt_data_t *parallel_data;
230 printf(
"%" PRIu64
": _first_tool: parallel level %d: parallel_id=%" PRIu64
243#define register_ompt_callback2_t(name, type) \
245 type f_##name = &on_cds_##name; \
246 if (ompt_set_callback(name, (ompt_callback_t)f_##name) == ompt_set_never) \
247 printf("0: Could not register callback '" #name "'\n"); \
250#define register_ompt_callback2(name) register_ompt_callback2_t(name, name##_t)
253 ompt_data_t *tool_data) {
264 ompt_callback_sync_region_t);
285 printf(
"0: ompt_event_runtime_shutdown\n");
289 const char *runtime_version) {
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_parallel_end(ompt_data_t *parallel_data, ompt_data_t *encountering_task_data, int flag, const void *codeptr_ra)
static ompt_get_task_info_t ompt_get_task_info
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)
#define register_ompt_callback(name)
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_dependences(ompt_data_t *task_data, const ompt_dependence_t *deps, int ndeps)
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)
int ompt_initialize(ompt_function_lookup_t lookup, int initial_device_num, ompt_data_t *tool_data)
static void on_ompt_callback_task_dependence(ompt_data_t *first_task_data, ompt_data_t *second_task_data)
#define register_ompt_callback_t(name, type)
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_thread_end(ompt_data_t *thread_data)
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_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_thread_begin(ompt_thread_t thread_type, ompt_data_t *thread_data)
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 ompt_get_parallel_info_t ompt_get_parallel_info
static void on_ompt_callback_cancel(ompt_data_t *task_data, int flags, const void *codeptr_ra)
static ompt_get_thread_data_t ompt_get_thread_data
void const char const char int ITT_FORMAT __itt_group_sync x void const char ITT_FORMAT __itt_group_sync s void ITT_FORMAT __itt_group_sync p void ITT_FORMAT p void ITT_FORMAT p no args __itt_suppress_mode_t unsigned int void size_t ITT_FORMAT d void ITT_FORMAT p void ITT_FORMAT p __itt_model_site __itt_model_site_instance ITT_FORMAT p __itt_model_task __itt_model_task_instance ITT_FORMAT p void ITT_FORMAT p void ITT_FORMAT p void size_t ITT_FORMAT d void ITT_FORMAT p const wchar_t ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s no args void ITT_FORMAT p size_t ITT_FORMAT d no args const wchar_t const wchar_t ITT_FORMAT s __itt_heap_function void size_t int ITT_FORMAT d __itt_heap_function void ITT_FORMAT p __itt_heap_function void void size_t int ITT_FORMAT d no args no args unsigned int ITT_FORMAT u const __itt_domain __itt_id ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain __itt_id ITT_FORMAT p const __itt_domain __itt_id __itt_timestamp __itt_timestamp ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain ITT_FORMAT p const __itt_domain __itt_string_handle unsigned long long ITT_FORMAT lu const __itt_domain __itt_string_handle unsigned long long ITT_FORMAT lu const __itt_domain __itt_id __itt_string_handle __itt_metadata_type size_t void * data
void const char const char int ITT_FORMAT __itt_group_sync x void const char ITT_FORMAT __itt_group_sync s void ITT_FORMAT __itt_group_sync p void ITT_FORMAT p void ITT_FORMAT p no args __itt_suppress_mode_t unsigned int void size_t ITT_FORMAT d void ITT_FORMAT p void ITT_FORMAT p __itt_model_site __itt_model_site_instance ITT_FORMAT p __itt_model_task __itt_model_task_instance ITT_FORMAT p void ITT_FORMAT p void ITT_FORMAT p void size_t ITT_FORMAT d void ITT_FORMAT p const wchar_t ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s no args void ITT_FORMAT p size_t count
void const char const char int ITT_FORMAT __itt_group_sync x void const char ITT_FORMAT __itt_group_sync s void ITT_FORMAT __itt_group_sync p void ITT_FORMAT p void ITT_FORMAT p no args __itt_suppress_mode_t unsigned int void size_t ITT_FORMAT d void ITT_FORMAT p void ITT_FORMAT p __itt_model_site __itt_model_site_instance ITT_FORMAT p __itt_model_task __itt_model_task_instance ITT_FORMAT p void ITT_FORMAT p void ITT_FORMAT p void size_t ITT_FORMAT d void ITT_FORMAT p const wchar_t ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s no args void ITT_FORMAT p size_t ITT_FORMAT d no args const wchar_t const wchar_t ITT_FORMAT s __itt_heap_function void size_t int ITT_FORMAT d __itt_heap_function void ITT_FORMAT p __itt_heap_function void void size_t int ITT_FORMAT d no args no args unsigned int ITT_FORMAT u const __itt_domain __itt_id ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain __itt_id ITT_FORMAT p const __itt_domain __itt_id __itt_timestamp __itt_timestamp ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain ITT_FORMAT p const __itt_domain __itt_string_handle unsigned long long value
void const char const char int ITT_FORMAT __itt_group_sync x void const char ITT_FORMAT __itt_group_sync s void ITT_FORMAT __itt_group_sync p void ITT_FORMAT p void ITT_FORMAT p no args __itt_suppress_mode_t unsigned int void size_t ITT_FORMAT d void ITT_FORMAT p void ITT_FORMAT p __itt_model_site __itt_model_site_instance ITT_FORMAT p __itt_model_task __itt_model_task_instance ITT_FORMAT p void ITT_FORMAT p void ITT_FORMAT p void size_t ITT_FORMAT d void ITT_FORMAT p const wchar_t ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s no args void ITT_FORMAT p size_t ITT_FORMAT d no args const wchar_t const wchar_t ITT_FORMAT s __itt_heap_function void size_t int ITT_FORMAT d __itt_heap_function void ITT_FORMAT p __itt_heap_function void void size_t int ITT_FORMAT d no args no args unsigned int ITT_FORMAT u const __itt_domain __itt_id ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain __itt_id ITT_FORMAT p const __itt_domain __itt_id __itt_timestamp __itt_timestamp ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain ITT_FORMAT p const __itt_domain __itt_string_handle unsigned long long ITT_FORMAT lu const __itt_domain __itt_string_handle unsigned long long ITT_FORMAT lu const __itt_domain __itt_id __itt_string_handle __itt_metadata_type type
struct ompt_start_tool_result_t ompt_start_tool_result_t
static ompt_start_tool_result_t * ompt_start_tool_result