llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Merge r277991 into the 3.9 branch

Open llvmbot opened this issue 10 years ago • 6 comments

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

llvmbot avatar Oct 31 '16 21:10 llvmbot

mentioned in issue llvm/llvm-project#30265

llvmbot avatar Nov 26 '21 22:11 llvmbot

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.

AndreyChurbanov avatar Nov 07 '16 17:11 AndreyChurbanov

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.

hahnjo avatar Nov 07 '16 17:11 hahnjo

Hi Andrey,

Is this OK to merge to the 3.9 branch: https://reviews.llvm.org/rL277991

Yes.

  • Andrey

AndreyChurbanov avatar Nov 07 '16 16:11 AndreyChurbanov

Hi Andrey,

Is this OK to merge to the 3.9 branch: https://reviews.llvm.org/rL277991

tstellar avatar Nov 07 '16 16:11 tstellar

assigned to @AndreyChurbanov

llvmbot avatar Oct 31 '16 21:10 llvmbot