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 | f729df821a96de320e913a7a931d8357d5219206 (patch) | |
| tree | fbe29444df64aad7c708048c13c3c3d4bb849000 | |
| parent | e9ddc44a604318739a27249d267aa7267d13d93b (diff) | |
| download | bcm5719-llvm-f729df821a96de320e913a7a931d8357d5219206.tar.gz bcm5719-llvm-f729df821a96de320e913a7a931d8357d5219206.zip | |
[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
| -rw-r--r-- | openmp/runtime/src/kmp_tasking.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openmp/runtime/src/kmp_tasking.cpp b/openmp/runtime/src/kmp_tasking.cpp index 1df82ff4d14..5daca2837cf 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 |

