[Openmp-commits] [openmp] r338295 - [OpenMP] Fix new task creation

Gheorghe-Teodor Bercea via Openmp-commits openmp-commits at lists.llvm.org
Mon Jul 30 12:51:51 PDT 2018

Author: gbercea
Date: Mon Jul 30 12:51:51 2018
New Revision: 338295

URL: http://llvm.org/viewvc/llvm-project?rev=338295&view=rev
[OpenMP] Fix new task creation

When OMPT is not supported the __kmp_omp_task() function is passed the parameters in the wrong order. This is a fix related to patch D47709.

Reviewers: Hahnfeld, sconvent, caomhin, jlpeyton

Reviewed By: Hahnfeld

Subscribers: guansong, openmp-commits

Differential Revision: https://reviews.llvm.org/D50001


Modified: openmp/trunk/runtime/src/kmp_tasking.cpp
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_tasking.cpp?rev=338295&r1=338294&r2=338295&view=diff
--- openmp/trunk/runtime/src/kmp_tasking.cpp (original)
+++ openmp/trunk/runtime/src/kmp_tasking.cpp Mon Jul 30 12:51:51 2018
@@ -4015,7 +4015,7 @@ void __kmp_taskloop_recur(ident_t *loc,
   // schedule new task with correct return address for OMPT events
   __kmp_omp_taskloop_task(NULL, gtid, new_task, codeptr_ra);
-  __kmp_omp_task(NULL, gtid, new_task); // schedule new task
+  __kmp_omp_task(gtid, new_task, true); // schedule new task
   // execute the 1st half of current subrange

More information about the Openmp-commits mailing list