LLVM OpenMP 20.0.0git
Macros | Functions | Variables
implicit_task_data.c File Reference
#include <stdio.h>
#include <unistd.h>
#include <inttypes.h>
#include <omp.h>
#include <omp-tools.h>

Go to the source code of this file.

Macros

#define _BSD_SOURCE
 
#define register_ompt_callback_t(name, type)
 
#define register_ompt_callback(name)   register_ompt_callback_t(name, name##_t)
 

Functions

int main ()
 
static void on_ompt_callback_thread_begin (ompt_thread_t thread_type, 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_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)
 
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_tompt_start_tool (unsigned int omp_version, const char *runtime_version)
 

Variables

static const charompt_thread_t_values []
 
static ompt_get_unique_id_t ompt_get_unique_id
 
static ompt_get_thread_data_t ompt_get_thread_data
 

Macro Definition Documentation

◆ _BSD_SOURCE

#define _BSD_SOURCE

Definition at line 10 of file implicit_task_data.c.

◆ register_ompt_callback

#define register_ompt_callback (   name)    register_ompt_callback_t(name, name##_t)

Definition at line 138 of file implicit_task_data.c.

◆ register_ompt_callback_t

#define register_ompt_callback_t (   name,
  type 
)
Value:
do{ \
type f_##name = &on_##name; \
if (ompt_set_callback(name, (ompt_callback_t)f_##name) == \
ompt_set_never) \
printf("0: Could not register callback '" #name "'\n"); \
}while(0)
static ompt_set_callback_t ompt_set_callback
Definition: callback.h:132
__itt_string_handle * name
Definition: ittnotify.h:3305
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

Definition at line 130 of file implicit_task_data.c.

Function Documentation

◆ main()

int main ( void  )

Definition at line 27 of file implicit_task_data.c.

◆ ompt_finalize()

void ompt_finalize ( ompt_data_t *  tool_data)

Definition at line 153 of file implicit_task_data.c.

Referenced by ompt_start_tool().

◆ ompt_initialize()

int ompt_initialize ( ompt_function_lookup_t  lookup,
int  initial_device_num,
ompt_data_t *  tool_data 
)

◆ ompt_start_tool()

ompt_start_tool_result_t * ompt_start_tool ( unsigned int  omp_version,
const char runtime_version 
)

Definition at line 158 of file implicit_task_data.c.

References ompt_finalize(), ompt_initialize(), and ompt_start_tool_result.

◆ on_ompt_callback_sync_region()

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

Definition at line 73 of file implicit_task_data.c.

References ompt_get_thread_data, ompt_get_unique_id, and value.

◆ on_ompt_callback_sync_region_wait()

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

Definition at line 103 of file implicit_task_data.c.

References ompt_get_thread_data, and value.

◆ on_ompt_callback_thread_begin()

static void on_ompt_callback_thread_begin ( ompt_thread_t  thread_type,
ompt_data_t *  thread_data 
)
static

Variable Documentation

◆ ompt_get_thread_data

ompt_get_thread_data_t ompt_get_thread_data ( void  )
static

◆ ompt_get_unique_id

ompt_get_unique_id_t ompt_get_unique_id ( void  )
static

◆ ompt_thread_t_values

const char* ompt_thread_t_values[]
static
Initial value:
= {
NULL,
"ompt_thread_initial",
"ompt_thread_worker",
"ompt_thread_other"
}

Definition at line 17 of file implicit_task_data.c.

Referenced by on_ompt_callback_thread_begin().