diff options
author | Andrey Churbanov <Andrey.Churbanov@intel.com> | 2015-05-06 18:34:15 +0000 |
---|---|---|
committer | Andrey Churbanov <Andrey.Churbanov@intel.com> | 2015-05-06 18:34:15 +0000 |
commit | e6bfb73fd56af3649577f6e269f1e087218bf46a (patch) | |
tree | fb507f84dcdd3801b004898ed4214d0319d7999c /openmp/runtime/src | |
parent | ac28c7044f6c9c35c54f955bfdbd6f97c13bf306 (diff) | |
download | bcm5719-llvm-e6bfb73fd56af3649577f6e269f1e087218bf46a.tar.gz bcm5719-llvm-e6bfb73fd56af3649577f6e269f1e087218bf46a.zip |
D9302.partial: bug fix for ittnotify: added missed timing on hierarchical barrier.
llvm-svn: 236623
Diffstat (limited to 'openmp/runtime/src')
-rw-r--r-- | openmp/runtime/src/kmp_barrier.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/openmp/runtime/src/kmp_barrier.cpp b/openmp/runtime/src/kmp_barrier.cpp index 72c9fa84ef3..429390b48cd 100644 --- a/openmp/runtime/src/kmp_barrier.cpp +++ b/openmp/runtime/src/kmp_barrier.cpp @@ -743,6 +743,13 @@ __kmp_hierarchical_barrier_gather(enum barrier_type bt, kmp_info_t *this_thr, gtid, team->t.t_id, tid, bt)); KMP_DEBUG_ASSERT(this_thr == other_threads[this_thr->th.th_info.ds.ds_tid]); +#if USE_ITT_BUILD && USE_ITT_NOTIFY + // Barrier imbalance - save arrive time to the thread + if(__kmp_forkjoin_frames_mode == 3 || __kmp_forkjoin_frames_mode == 2) { + this_thr->th.th_bar_arrive_time = __itt_get_timestamp(); + } +#endif + (void)__kmp_init_hierarchical_barrier_thread(bt, thr_bar, nproc, gtid, tid, team); if (thr_bar->my_level) { // not a leaf (my_level==0 means leaf) |