[Openmp-commits] [PATCH] D47709: [OMPT] Fix OMPT callbacks for the taskloop construct and add testcase

Andrey Churbanov via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Tue Jun 5 06:01:06 PDT 2018


AndreyChurbanov added inline comments.


================
Comment at: runtime/src/kmp_tasking.cpp:3955
   ompt_task_info_t *task_info = __ompt_get_task_info_object(0);
+  kmp_uint64 iteration_count = *lb < *ub ? *ub - *lb + 1 : *lb - *ub + 1;
   if (ompt_enabled.ompt_callback_work) {
----------------
protze.joachim wrote:
> Shouldn't there be st(ride) in the formula?
Why not use calculated below iterations count - tc?  It is computed at lines 3980 - 3995, including the check against zero.


https://reviews.llvm.org/D47709





More information about the Openmp-commits mailing list