Changeset View
Changeset View
Standalone View
Standalone View
runtime/src/include/40/ompt.h.var
Show First 20 Lines • Show All 165 Lines • ▼ Show 20 Lines | #define FOREACH_OMPT_EVENT(macro) \ | ||||
macro (ompt_event_acquired_ordered, ompt_wait_callback_t, 56) /* ordered acquired */ \ | macro (ompt_event_acquired_ordered, ompt_wait_callback_t, 56) /* ordered acquired */ \ | ||||
\ | \ | ||||
macro (ompt_event_init_lock, ompt_wait_callback_t, 57) /* lock init */ \ | macro (ompt_event_init_lock, ompt_wait_callback_t, 57) /* lock init */ \ | ||||
macro (ompt_event_init_nest_lock, ompt_wait_callback_t, 58) /* nest lock init */ \ | macro (ompt_event_init_nest_lock, ompt_wait_callback_t, 58) /* nest lock init */ \ | ||||
\ | \ | ||||
macro (ompt_event_destroy_lock, ompt_wait_callback_t, 59) /* lock destruction */ \ | macro (ompt_event_destroy_lock, ompt_wait_callback_t, 59) /* lock destruction */ \ | ||||
macro (ompt_event_destroy_nest_lock, ompt_wait_callback_t, 60) /* nest lock destruction */ \ | macro (ompt_event_destroy_nest_lock, ompt_wait_callback_t, 60) /* nest lock destruction */ \ | ||||
\ | \ | ||||
macro (ompt_event_flush, ompt_callback_t, 61) /* after executing flush */ | macro (ompt_event_flush, ompt_callback_t, 61) /* after executing flush */ \ | ||||
\ | |||||
macro (ompt_event_task_dependences, ompt_task_dependences_callback_t, 69) /* report task dependences */\ | |||||
macro (ompt_event_task_dependence_pair, ompt_task_pair_callback_t, 70) /* report task dependence pair */ | |||||
/***************************************************************************** | /***************************************************************************** | ||||
* data types | * data types | ||||
*****************************************************************************/ | *****************************************************************************/ | ||||
/*--------------------- | /*--------------------- | ||||
Show All 18 Lines | |||||
*---------------------*/ | *---------------------*/ | ||||
typedef struct ompt_frame_s { | typedef struct ompt_frame_s { | ||||
void *exit_runtime_frame; /* next frame is user code */ | void *exit_runtime_frame; /* next frame is user code */ | ||||
void *reenter_runtime_frame; /* previous frame is user code */ | void *reenter_runtime_frame; /* previous frame is user code */ | ||||
} ompt_frame_t; | } ompt_frame_t; | ||||
/*--------------------- | |||||
* dependences types | |||||
*---------------------*/ | |||||
typedef enum ompt_task_dependence_flag_e { | |||||
// a two bit field for the dependence type | |||||
ompt_task_dependence_type_out = 1, | |||||
ompt_task_dependence_type_in = 2, | |||||
ompt_task_dependence_type_inout = 3, | |||||
} ompt_task_dependence_flag_t; | |||||
typedef struct ompt_task_dependence_s { | |||||
void *variable_addr; | |||||
uint32_t dependence_flags; | |||||
} ompt_task_dependence_t; | |||||
/***************************************************************************** | /***************************************************************************** | ||||
* enumerations for thread states and runtime events | * enumerations for thread states and runtime events | ||||
*****************************************************************************/ | *****************************************************************************/ | ||||
/*--------------------- | /*--------------------- | ||||
* runtime states | * runtime states | ||||
*---------------------*/ | *---------------------*/ | ||||
▲ Show 20 Lines • Show All 103 Lines • ▼ Show 20 Lines | |||||
typedef void (*ompt_new_task_callback_t) ( | typedef void (*ompt_new_task_callback_t) ( | ||||
ompt_task_id_t parent_task_id, /* id of parent task */ | ompt_task_id_t parent_task_id, /* id of parent task */ | ||||
ompt_frame_t *parent_task_frame, /* frame data for parent task */ | ompt_frame_t *parent_task_frame, /* frame data for parent task */ | ||||
ompt_task_id_t new_task_id, /* id of created task */ | ompt_task_id_t new_task_id, /* id of created task */ | ||||
void *task_function /* pointer to outlined function */ | void *task_function /* pointer to outlined function */ | ||||
); | ); | ||||
/* task dependences */ | |||||
typedef void (*ompt_task_dependences_callback_t) ( | |||||
ompt_task_id_t task_id, /* ID of task with dependences */ | |||||
const ompt_task_dependence_t *deps,/* vector of task dependences */ | |||||
int ndeps /* number of dependences */ | |||||
); | |||||
/* program */ | /* program */ | ||||
typedef void (*ompt_control_callback_t) ( | typedef void (*ompt_control_callback_t) ( | ||||
uint64_t command, /* command of control call */ | uint64_t command, /* command of control call */ | ||||
uint64_t modifier /* modifier of control call */ | uint64_t modifier /* modifier of control call */ | ||||
); | ); | ||||
typedef void (*ompt_callback_t)(void); | typedef void (*ompt_callback_t)(void); | ||||
▲ Show 20 Lines • Show All 152 Lines • Show Last 20 Lines |