summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/src/ompt-internal.h
diff options
context:
space:
mode:
authorJoachim Protze <protze@itc.rwth-aachen.de>2017-11-03 17:09:00 +0000
committerJoachim Protze <protze@itc.rwth-aachen.de>2017-11-03 17:09:00 +0000
commit924cff0a3988975996bd5808d3b64e320ee73c84 (patch)
tree5edc1962bf09dd928fb534aa288d7c7b0c525c96 /openmp/runtime/src/ompt-internal.h
parent741572593f56d054dcd01118960ace51b6f27b71 (diff)
downloadbcm5719-llvm-924cff0a3988975996bd5808d3b64e320ee73c84.tar.gz
bcm5719-llvm-924cff0a3988975996bd5808d3b64e320ee73c84.zip
Updating implementation of OMPT as specified in OpenMP 5.0 Preview 2 (TR6)
The TR6 document is expected to be publically released around November 15. This patch does not implement OMPT for libomptarget. Patch by Simon Convent and Joachim Protze Differential Revision: https://reviews.llvm.org/D39182 llvm-svn: 317339
Diffstat (limited to 'openmp/runtime/src/ompt-internal.h')
-rw-r--r--openmp/runtime/src/ompt-internal.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/openmp/runtime/src/ompt-internal.h b/openmp/runtime/src/ompt-internal.h
index 6139e002f79..e529572e029 100644
--- a/openmp/runtime/src/ompt-internal.h
+++ b/openmp/runtime/src/ompt-internal.h
@@ -31,6 +31,8 @@ typedef struct ompt_callbacks_active_s {
#undef ompt_event_macro
} ompt_callbacks_active_t;
+typedef struct kmp_taskdata kmp_taskdata_t;
+
#define TASK_TYPE_DETAILS_FORMAT(info) \
((info->td_flags.task_serial || info->td_flags.tasking_ser) \
? ompt_task_undeferred \
@@ -42,7 +44,7 @@ typedef struct ompt_callbacks_active_s {
typedef struct {
ompt_frame_t frame;
ompt_data_t task_data;
- struct kmp_taskdata *scheduling_parent;
+ kmp_taskdata_t *scheduling_parent;
#if OMP_40_ENABLED
int ndeps;
ompt_task_dependence_t *deps;
OpenPOWER on IntegriCloud