[OpenACC] Remove erroneous "Orphan reductions cannot have gang partitioning" handling
authorThomas Schwinge <thomas@codesourcery.com>
Fri, 26 Nov 2021 12:11:16 +0000 (13:11 +0100)
committerThomas Schwinge <thomas@codesourcery.com>
Tue, 30 Nov 2021 11:59:14 +0000 (12:59 +0100)
commit365cd5f9ba812c389b404a53d99ab5dded5097f4
treed8f1575a59ad6b41b6ec86307464f3b45493efd9
parent77d24d43644909852998043335b5a0e09d1e8f02
[OpenACC] Remove erroneous "Orphan reductions cannot have gang partitioning" handling

That is:

    -/* Ensure that the middle end does not assign gang level parallelism
    -   to orphan loop containing reductions.  */
    +/* Verify that we diagnose "gang reduction on an orphan loop" for automatically
    +   assigned gang level of parallelism.  */

... to implement what the OpenACC specification actually says.

Fix-up for preceding commit 2b7dac2c0dcb087da9e4018943c023c0678234a3
"Make OpenACC orphan gang reductions errors".

gcc/
* omp-offload.c (oacc_loop_auto_partitions): Remove erroneous
"Orphan reductions cannot have gang partitioning" handling.
gcc/testsuite/
* c-c++-common/goacc/nested-reductions-1-routine.c: Adjust.
* c-c++-common/goacc/nested-reductions-2-routine.c: Adjust.
* c-c++-common/goacc/orphan-reductions-2.c: Adjust.
* gfortran.dg/goacc/nested-reductions-1-routine.f90: Adjust.
* gfortran.dg/goacc/nested-reductions-2-routine.f90: Adjust.
* gfortran.dg/goacc/orphan-reductions-1.f90: Adjust.
* gfortran.dg/goacc/orphan-reductions-2.f90: Adjust.
gcc/omp-offload.c
gcc/testsuite/c-c++-common/goacc/nested-reductions-1-routine.c
gcc/testsuite/c-c++-common/goacc/nested-reductions-2-routine.c
gcc/testsuite/c-c++-common/goacc/orphan-reductions-2.c
gcc/testsuite/gfortran.dg/goacc/nested-reductions-1-routine.f90
gcc/testsuite/gfortran.dg/goacc/nested-reductions-2-routine.f90
gcc/testsuite/gfortran.dg/goacc/orphan-reductions-1.f90
gcc/testsuite/gfortran.dg/goacc/orphan-reductions-2.f90