aboutsummaryrefslogtreecommitdiff
path: root/runtime/src/kmp_ftn_entry.h
diff options
context:
space:
mode:
authorJoachim Protze <protze@itc.rwth-aachen.de>2018-12-18 08:52:30 +0000
committerJoachim Protze <protze@itc.rwth-aachen.de>2018-12-18 08:52:30 +0000
commitdaa386bb15d6ba8aa791bc515317be7e79ba86e1 (patch)
treec6ef14867e9457fa60460f2ec27f87a31f01b814 /runtime/src/kmp_ftn_entry.h
parentc89e1255ba9cd15aca215ea8935fdc3969393430 (diff)
[OMPT] First chunk of final OMPT 5.0 interface updates
This patch updates the implementation of the ompt_frame_t, ompt_wait_id_t and ompt_state_t. The final version of the OpenMP 5.0 spec added the "t" for these types. Furthermore the structure for ompt_frame_t changed and allows to specify that the reenter frame belongs to the runtime. Patch partially prepared by Simon Convent Reviewers: hbae git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@349458 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime/src/kmp_ftn_entry.h')
-rw-r--r--runtime/src/kmp_ftn_entry.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/src/kmp_ftn_entry.h b/runtime/src/kmp_ftn_entry.h
index 2d349f0..abf1892 100644
--- a/runtime/src/kmp_ftn_entry.h
+++ b/runtime/src/kmp_ftn_entry.h
@@ -361,9 +361,9 @@ int FTN_STDCALL FTN_CONTROL_TOOL(int command, int modifier, void *arg) {
}
kmp_info_t *this_thr = __kmp_threads[__kmp_entry_gtid()];
ompt_task_info_t *parent_task_info = OMPT_CUR_TASK_INFO(this_thr);
- parent_task_info->frame.enter_frame = OMPT_GET_FRAME_ADDRESS(1);
+ parent_task_info->frame.enter_frame.ptr = OMPT_GET_FRAME_ADDRESS(0);
int ret = __kmp_control_tool(command, modifier, arg);
- parent_task_info->frame.enter_frame = 0;
+ parent_task_info->frame.enter_frame.ptr = 0;
return ret;
#endif
}