summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/src/ompt-internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'openmp/runtime/src/ompt-internal.h')
-rw-r--r--openmp/runtime/src/ompt-internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/openmp/runtime/src/ompt-internal.h b/openmp/runtime/src/ompt-internal.h
index eae0577f391..a6b366d7552 100644
--- a/openmp/runtime/src/ompt-internal.h
+++ b/openmp/runtime/src/ompt-internal.h
@@ -8,6 +8,8 @@
#define _OMP_EXTERN extern "C"
+#define OMPT_INVOKER(x) \
+ ((x == fork_context_gnu) ? ompt_invoker_program : ompt_invoker_runtime)
#define ompt_callback(e) e ## _callback
OpenPOWER on IntegriCloud