diff options
author | Gheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com> | 2018-07-30 19:51:51 +0000 |
---|---|---|
committer | Gheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com> | 2018-07-30 19:51:51 +0000 |
commit | 72133c3013323fad53c82b7de68388bbd0685fb8 (patch) | |
tree | a3677e65409ba70b8d0bbd8dbdb92bf126957e40 | |
parent | 89df44b82fc8944d688a59e7528bffa7d978b454 (diff) |
[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
-rw-r--r-- | runtime/src/kmp_tasking.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 |