9void print_task_info_at(
int ancestor_level,
int id)
15 ompt_data_t *parallel_data;
16 ompt_data_t *task_data;
19 ¶llel_data, &thread_num);
21 printf(
"%" PRIu64
": ancestor_level=%d id=%d task_type=%s=%d "
22 "parallel_id=%" PRIu64
" task_id=%" PRIu64
25 task_type, parallel_data->value, task_data->value, thread_num);
30void print_innermost_task_info(
int id)
32 print_task_info_at(0,
id);
39#pragma omp parallel num_threads(2)
44 if (omp_get_thread_num() == 1) {
47 print_innermost_task_info(1);
49#pragma omp parallel num_threads(1)
53 print_innermost_task_info(2);
55#pragma omp parallel num_threads(1)
59 print_innermost_task_info(3);
63 print_task_info_at(0, 3);
64 print_task_info_at(1, 2);
65 print_task_info_at(2, 1);
static ompt_get_task_info_t ompt_get_task_info
static void format_task_type(int type, char *buffer)
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 value
__attribute__((noinline))