summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/src/ompt-general.cpp
diff options
context:
space:
mode:
authorJoachim Protze <protze@itc.rwth-aachen.de>2018-09-10 14:34:54 +0000
committerJoachim Protze <protze@itc.rwth-aachen.de>2018-09-10 14:34:54 +0000
commit489cdb783a0655ed2d2812a62fda220eb17574dd (patch)
treec0ef9c60f5df7b12e88e22ffecd12fb3c47309bb /openmp/runtime/src/ompt-general.cpp
parent659c871a1b47836bb0b02f63124bc35e00990f1c (diff)
downloadbcm5719-llvm-489cdb783a0655ed2d2812a62fda220eb17574dd.tar.gz
bcm5719-llvm-489cdb783a0655ed2d2812a62fda220eb17574dd.zip
[OMPT] Update types according to TR7
Some types and callback signatures have changed from TR6 to TR7. Major changes (only adding signatures and stubs): (-remove idle callback) done by D48362 -add reduction and dispatch callback -add get_task_memory and finalize_tool runtime entry points -ompt_invoker_t becomes ompt_parallel_flag_t -more types of sync_regions Patch provided by Simon Convent Reviewers: hbae, protze.joachim Differential Revision: https://reviews.llvm.org/D50774 llvm-svn: 341834
Diffstat (limited to 'openmp/runtime/src/ompt-general.cpp')
-rw-r--r--openmp/runtime/src/ompt-general.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/openmp/runtime/src/ompt-general.cpp b/openmp/runtime/src/ompt-general.cpp
index 25ad19d03af..964f6cdd1d8 100644
--- a/openmp/runtime/src/ompt-general.cpp
+++ b/openmp/runtime/src/ompt-general.cpp
@@ -351,7 +351,7 @@ void ompt_post_init() {
return;
}
- ompt_thread_t *root_thread = ompt_get_thread();
+ kmp_info_t *root_thread = ompt_get_thread();
ompt_set_thread_state(root_thread, omp_state_overhead);
@@ -509,6 +509,12 @@ OMPT_API_ROUTINE int ompt_get_task_info(int ancestor_level, int *type,
task_frame, parallel_data, thread_num);
}
+OMPT_API_ROUTINE int ompt_get_task_memory(void **addr, size_t *size,
+ int block) {
+ // stub
+ return 0;
+}
+
/*****************************************************************************
* num_procs
****************************************************************************/
@@ -678,6 +684,10 @@ OMPT_API_ROUTINE uint64_t ompt_get_unique_id(void) {
return __ompt_get_unique_id_internal();
}
+OMPT_API_ROUTINE void ompt_finalize_tool(void) {
+ // stub
+}
+
/*****************************************************************************
* Target
****************************************************************************/
OpenPOWER on IntegriCloud