On Wed, Sep 05, 2018 at 01:08:21PM -0700, Cesar Philippidis wrote:
> 2018-XX-YY Cesar Philippidis
> Chung-Lin Tang
>
> gcc/
> * gimplify.c (omp_add_variable): Enable firstprivate reduction
> variables.
>
> gcc/testsuite/
> * c-c++-common/goacc/reductio
for (...)
{
#pragma acc loop reduction(+:s2)
Here s2 will be transferred into the accelerator as firstprivate instead
of copy.
Is this OK for trunk? I regtested and bootstrapped for x86_64 with nvptx
offloading.
Cesar
[OpenACC] Enable firstprivate OpenACC reductions
2018-XX-YY Cesar