[Openmp-commits] [openmp] r237959 - One line fix - bug with final clause of task construct

Jonathan Peyton jonathan.l.peyton at intel.com
Thu May 21 14:16:38 PDT 2015


Author: jlpeyton
Date: Thu May 21 16:16:38 2015
New Revision: 237959

URL: http://llvm.org/viewvc/llvm-project?rev=237959&view=rev
Log:
One line fix - bug with final clause of task construct

Should be looking at parent_task->td_flags.final instead of the recently allocated task.

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

Modified: openmp/trunk/runtime/src/kmp_tasking.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_tasking.c?rev=237959&r1=237958&r2=237959&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_tasking.c (original)
+++ openmp/trunk/runtime/src/kmp_tasking.c Thu May 21 16:16:38 2015
@@ -992,7 +992,7 @@ __kmp_task_alloc( ident_t *loc_ref, kmp_
     // GEH - Note we serialize the task if the team is serialized to make sure implicit parallel region
     //       tasks are not left until program termination to execute.  Also, it helps locality to execute
     //       immediately.
-    taskdata->td_flags.task_serial = ( taskdata->td_flags.final
+    taskdata->td_flags.task_serial = ( parent_task->td_flags.final
       || taskdata->td_flags.team_serial || taskdata->td_flags.tasking_ser );
 
     taskdata->td_flags.started     = 0;





More information about the Openmp-commits mailing list