[Openmp-commits] [PATCH] D26058: Add more conditions to check whether task waiting is necessary in kmp_omp_taskwait()

Andrey Churbanov via Openmp-commits openmp-commits at lists.llvm.org
Mon Oct 31 12:07:19 PDT 2016


AndreyChurbanov added inline comments.


================
Comment at: runtime/src/kmp_tasking.c:1483
 
+        bool must_wait = ! taskdata->td_flags.team_serial && ! taskdata->td_flags.tasking_ser && ! taskdata->td_flags.final;
+
----------------
The check "! taskdata->td_flags.tasking_ser" looks redundant here, because this condition is effectively the same as "__kmp_tasking_mode != tskm_immediate_exec" that has already been checked above at the line 1446.

The check of the td_flags.final flag does make sense.


https://reviews.llvm.org/D26058





More information about the Openmp-commits mailing list