[PATCH] D12911: Correct an incorrect OMPT ifdef
John Mellor-Crummey via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 16 12:25:33 PDT 2015
jmellorcrummey created this revision.
jmellorcrummey added a reviewer: openmp-commits.
jmellorcrummey added subscribers: openmp-commits, llvm-commits.
jmellorcrummey set the repository for this revision to rL LLVM.
An ifdef for OMPT_TRACE needs to be OMPT_BLAME so that both instances of a callback are controlled by the same ifdef.
Repository:
rL LLVM
http://reviews.llvm.org/D12911
Files:
runtime/src/kmp_barrier.cpp
Index: runtime/src/kmp_barrier.cpp
===================================================================
--- runtime/src/kmp_barrier.cpp
+++ runtime/src/kmp_barrier.cpp
@@ -1515,7 +1515,7 @@
#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)(
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12911.34912.patch
Type: text/x-patch
Size: 481 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150916/c44fd10e/attachment.bin>
More information about the llvm-commits
mailing list