From 72133c3013323fad53c82b7de68388bbd0685fb8 Mon Sep 17 00:00:00 2001 From: Gheorghe-Teodor Bercea Date: Mon, 30 Jul 2018 19:51:51 +0000 Subject: [OpenMP] Fix new task creation Summary: 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 git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@338295 91177308-0d34-0410-b5e6-96231b3b80d8 --- runtime/src/kmp_tasking.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/kmp_tasking.cpp b/runtime/src/kmp_tasking.cpp index 1df82ff..5daca28 100644 --- a/runtime/src/kmp_tasking.cpp +++ b/runtime/src/kmp_tasking.cpp @@ -4015,7 +4015,7 @@ void __kmp_taskloop_recur(ident_t *loc, int gtid, kmp_task_t *task, // schedule new task with correct return address for OMPT events __kmp_omp_taskloop_task(NULL, gtid, new_task, codeptr_ra); #else - __kmp_omp_task(NULL, gtid, new_task); // schedule new task + __kmp_omp_task(gtid, new_task, true); // schedule new task #endif // execute the 1st half of current subrange -- cgit v1.2.3