summaryrefslogtreecommitdiff
path: root/runtime/src/kmp_wait_release.h
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2019-10-23 17:53:14 +0000
committerDimitry Andric <dim@FreeBSD.org>2019-10-23 17:53:14 +0000
commit53265afff0dd5ba32642c444583e7d2bb25ca2e9 (patch)
tree62c6dca85a7f7ec8c3adb959c8d512cb140b705a /runtime/src/kmp_wait_release.h
parent1756886afc900127720de68088f9adff3108ef61 (diff)
Notes
Diffstat (limited to 'runtime/src/kmp_wait_release.h')
-rw-r--r--runtime/src/kmp_wait_release.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/src/kmp_wait_release.h b/runtime/src/kmp_wait_release.h
index bb6bdf5d8fa58..b235be3cf64ad 100644
--- a/runtime/src/kmp_wait_release.h
+++ b/runtime/src/kmp_wait_release.h
@@ -140,8 +140,11 @@ static void __ompt_implicit_task_end(kmp_info_t *this_thr,
#endif
if (!KMP_MASTER_TID(ds_tid)) {
if (ompt_enabled.ompt_callback_implicit_task) {
+ int flags = this_thr->th.ompt_thread_info.parallel_flags;
+ flags = (flags & ompt_parallel_league) ? ompt_task_initial
+ : ompt_task_implicit;
ompt_callbacks.ompt_callback(ompt_callback_implicit_task)(
- ompt_scope_end, NULL, tId, 0, ds_tid, ompt_task_implicit);
+ ompt_scope_end, NULL, tId, 0, ds_tid, flags);
}
// return to idle state
this_thr->th.ompt_thread_info.state = ompt_state_idle;