summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/src/include/40/ompt.h.var
diff options
context:
space:
mode:
Diffstat (limited to 'openmp/runtime/src/include/40/ompt.h.var')
-rw-r--r--openmp/runtime/src/include/40/ompt.h.var29
1 files changed, 28 insertions, 1 deletions
diff --git a/openmp/runtime/src/include/40/ompt.h.var b/openmp/runtime/src/include/40/ompt.h.var
index a1387fab43b..ff1d86be859 100644
--- a/openmp/runtime/src/include/40/ompt.h.var
+++ b/openmp/runtime/src/include/40/ompt.h.var
@@ -171,7 +171,10 @@
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_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 */
@@ -206,6 +209,23 @@ typedef struct ompt_frame_s {
} 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
*****************************************************************************/
@@ -325,6 +345,13 @@ typedef void (*ompt_new_task_callback_t) (
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 */
typedef void (*ompt_control_callback_t) (
uint64_t command, /* command of control call */
OpenPOWER on IntegriCloud