aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/src/kmp_wait_release.h
diff options
context:
space:
mode:
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 bb6bdf5d8fa5..b235be3cf64a 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;