[Openmp-commits] [openmp] r236623 - D9302.partial: bug fix for ittnotify: added missed timing on hierarchical barrier.

Andrey Churbanov Andrey.Churbanov at intel.com
Wed May 6 11:34:15 PDT 2015


Author: achurbanov
Date: Wed May  6 13:34:15 2015
New Revision: 236623

URL: http://llvm.org/viewvc/llvm-project?rev=236623&view=rev
Log:
D9302.partial: bug fix for ittnotify: added missed timing on hierarchical barrier.

Modified:
    openmp/trunk/runtime/src/kmp_barrier.cpp

Modified: openmp/trunk/runtime/src/kmp_barrier.cpp
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_barrier.cpp?rev=236623&r1=236622&r2=236623&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_barrier.cpp (original)
+++ openmp/trunk/runtime/src/kmp_barrier.cpp Wed May  6 13:34:15 2015
@@ -743,6 +743,13 @@ __kmp_hierarchical_barrier_gather(enum b
                   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)





More information about the Openmp-commits mailing list