From f729df821a96de320e913a7a931d8357d5219206 Mon Sep 17 00:00:00 2001 From: Gheorghe-Teodor Bercea Date: Mon, 30 Jul 2018 19:51:51 +0000 Subject: [PATCH] [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 llvm-svn: 338295 --- openmp/runtime/src/kmp_tasking.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmp/runtime/src/kmp_tasking.cpp b/openmp/runtime/src/kmp_tasking.cpp index 1df82ff..5daca28 100644 --- a/openmp/runtime/src/kmp_tasking.cpp +++ b/openmp/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 -- 2.7.4