[Openmp-commits] [PATCH] OMPT event_barrier_end fix

Tim Cramer cramer at itc.rwth-aachen.de
Wed Jul 1 00:08:47 PDT 2015


Hi omalyshe,

The OMPT status is never equal to ompt_status_track. ompt_status_track = 0x2 and ompt_status_track_callback = 0x6 just share a bit, so that we can check for traceing and callbacks with the same status.

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D10863

Files:
  runtime/src/kmp_barrier.cpp

Index: runtime/src/kmp_barrier.cpp
===================================================================
--- runtime/src/kmp_barrier.cpp
+++ runtime/src/kmp_barrier.cpp
@@ -1495,7 +1495,7 @@
     KA_TRACE(10, ("__kmp_join_barrier: T#%d(%d:%d) leaving\n", gtid, team_id, tid));
 
 #if OMPT_SUPPORT
-    if (ompt_status == ompt_status_track) {
+    if (ompt_status & ompt_status_track) {
 #if OMPT_TRACE
         if ((ompt_status == ompt_status_track_callback) &&
             ompt_callbacks.ompt_callback(ompt_event_barrier_end)) {

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10863.28848.patch
Type: text/x-patch
Size: 529 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20150701/1726a39f/attachment.bin>


More information about the Openmp-commits mailing list