Skip to content

Commit

Permalink
Fix OMPT event_barrer_end
Browse files Browse the repository at this point in the history
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.

Patch by Tim Cramer

Differential Revision: http://reviews.llvm.org/D10863

llvm-svn: 241167
  • Loading branch information
jpeyton52 committed Jul 1, 2015
1 parent 650c520 commit 4828151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openmp/runtime/src/kmp_barrier.cpp
Expand Up @@ -1502,7 +1502,7 @@ __kmp_join_barrier(int gtid)
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)) {
Expand Down

0 comments on commit 4828151

Please sign in to comment.