[Openmp-commits] [PATCH] D17145: [OMPT] Frame information for openmp taskwait

Jonas Hahnfeld via Openmp-commits openmp-commits at lists.llvm.org
Fri Feb 12 04:24:30 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL260674: [OMPT] Frame information for openmp taskwait (authored by Hahnfeld).

Changed prior to commit:
  http://reviews.llvm.org/D17145?vs=47660&id=47789#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D17145

Files:
  openmp/trunk/runtime/src/kmp_tasking.c

Index: openmp/trunk/runtime/src/kmp_tasking.c
===================================================================
--- openmp/trunk/runtime/src/kmp_tasking.c
+++ openmp/trunk/runtime/src/kmp_tasking.c
@@ -1358,6 +1358,7 @@
             my_task_id = taskdata->ompt_task_info.task_id;
             my_parallel_id = team->t.ompt_team_info.parallel_id;
             
+            taskdata->ompt_task_info.frame.reenter_runtime_frame = __builtin_frame_address(0);
             if (ompt_callbacks.ompt_callback(ompt_event_taskwait_begin)) {
                 ompt_callbacks.ompt_callback(ompt_event_taskwait_begin)(
                                 my_parallel_id, my_task_id);
@@ -1400,10 +1401,12 @@
         taskdata->td_taskwait_thread = - taskdata->td_taskwait_thread;
 
 #if OMPT_SUPPORT && OMPT_TRACE
-        if (ompt_enabled &&
-            ompt_callbacks.ompt_callback(ompt_event_taskwait_end)) {
-            ompt_callbacks.ompt_callback(ompt_event_taskwait_end)(
+        if (ompt_enabled) {
+            if (ompt_callbacks.ompt_callback(ompt_event_taskwait_end)) {
+                ompt_callbacks.ompt_callback(ompt_event_taskwait_end)(
                                 my_parallel_id, my_task_id);
+            }
+            taskdata->ompt_task_info.frame.reenter_runtime_frame = 0;
         }
 #endif
     }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17145.47789.patch
Type: text/x-patch
Size: 1316 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20160212/b9d1c573/attachment.bin>


More information about the Openmp-commits mailing list