[Openmp-commits] [openmp] r248001 - [OMPT] Correct an incorrect OMPT ifdef

Jonathan Peyton via Openmp-commits openmp-commits at lists.llvm.org
Fri Sep 18 09:24:47 PDT 2015


Author: jlpeyton
Date: Fri Sep 18 11:24:46 2015
New Revision: 248001

URL: http://llvm.org/viewvc/llvm-project?rev=248001&view=rev
Log:
[OMPT] Correct an incorrect OMPT ifdef 

An ifdef for OMPT_TRACE needs to be OMPT_BLAME so that both instances of a
callback are controlled by the same ifdef.

Patch by John Mellor-Crummey

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

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=248001&r1=248000&r2=248001&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_barrier.cpp (original)
+++ openmp/trunk/runtime/src/kmp_barrier.cpp Fri Sep 18 11:24:46 2015
@@ -1514,7 +1514,7 @@ __kmp_join_barrier(int gtid)
 
 #if OMPT_SUPPORT
     if (ompt_status & ompt_status_track) {
-#if OMPT_TRACE
+#if OMPT_BLAME
         if ((ompt_status == ompt_status_track_callback) &&
             ompt_callbacks.ompt_callback(ompt_event_barrier_end)) {
             ompt_callbacks.ompt_callback(ompt_event_barrier_end)(




More information about the Openmp-commits mailing list