[Openmp-commits] [openmp] r252954 - Add debug trace message for hierarchical barrier
Jonathan Peyton via Openmp-commits
openmp-commits at lists.llvm.org
Thu Nov 12 13:40:39 PST 2015
Author: jlpeyton
Date: Thu Nov 12 15:40:39 2015
New Revision: 252954
URL: http://llvm.org/viewvc/llvm-project?rev=252954&view=rev
Log:
Add debug trace message for hierarchical barrier
Trace when thread is waiting at join phase for oncore children.
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=252954&r1=252953&r2=252954&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_barrier.cpp (original)
+++ openmp/trunk/runtime/src/kmp_barrier.cpp Thu Nov 12 15:40:39 2015
@@ -766,6 +766,8 @@ __kmp_hierarchical_barrier_gather(enum b
if (__kmp_dflt_blocktime == KMP_MAX_BLOCKTIME && thr_bar->use_oncore_barrier) {
if (thr_bar->leaf_kids) { // First, wait for leaf children to check-in on my b_arrived flag
kmp_uint64 leaf_state = KMP_MASTER_TID(tid) ? thr_bar->b_arrived | thr_bar->leaf_state : team->t.t_bar[bt].b_arrived | thr_bar->leaf_state;
+ KA_TRACE(20, ("__kmp_hierarchical_barrier_gather: T#%d(%d:%d) waiting for leaf kids\n",
+ gtid, team->t.t_id, tid));
kmp_flag_64 flag(&thr_bar->b_arrived, leaf_state);
flag.wait(this_thr, FALSE
USE_ITT_BUILD_ARG(itt_sync_obj) );
More information about the Openmp-commits
mailing list