Merge r277991 into the 3.9 branch
| Bugzilla Link | 30855 |
| Resolution | WONTFIX |
| Resolved on | Nov 11, 2016 13:18 |
| Version | unspecified |
| OS | MacOS X |
| Depends On | llvm/llvm-project#30265 |
| Blocks | llvm/llvm-project#29609 |
| Attachments | back port of r277991 for 3.9 branch |
| Reporter | LLVM Bugzilla Contributor |
| CC | @hahnjo,@tstellar |
Extended Description
I would like to propose merging the change...
r277991 | hahnfeld | 2016-08-08 06:08:07 -0400 (Mon, 08 Aug 2016) | 24 lines
__kmp_free_task: Fix for serial explicit tasks producing proxy tasks
Consider the following code which may be executed by a serial team:
int dep;
#pragma omp target nowait depend(out: dep)
{
sleep(1);
}
#pragma omp task depend(in: dep)
{
#pragma omp target nowait
{
sleep(1);
}
}
Here the explicit task may not be freed until the nested proxy task has finished. The current code hasn't considered this and called __kmp_free_task anyway which triggered an assert because of remaining incomplete children:
KMP_DEBUG_ASSERT( TCR_4(taskdata->td_incomplete_child_tasks) == 0 );
Differential Revision: https://reviews.llvm.org/D23115
to 3.9 branch for the 3.9.1 release
mentioned in issue llvm/llvm-project#30265
Ooops, I was too in a hurry. Once Jonas is not happy with this change merging, I think we should discard this request. Especially given that this change has a bug fixed later by the change https://reviews.llvm.org/rL284747.
As said on openmp-dev, I'm against merging my proxy task related patches: They will need multiple fixes to not let gcc fail in the tests and proxy tasks are solely used within the Intel Compiler.
Hi Andrey,
Is this OK to merge to the 3.9 branch: https://reviews.llvm.org/rL277991
Yes.
- Andrey
Hi Andrey,
Is this OK to merge to the 3.9 branch: https://reviews.llvm.org/rL277991
assigned to @AndreyChurbanov