]> gcc.gnu.org Git - gcc.git/commit
Fix OpenACC gang-redundant execution in 'libgomp.oacc-fortran/privatized-ref-2.f90'
authorThomas Schwinge <thomas@codesourcery.com>
Fri, 21 Jan 2022 13:58:23 +0000 (14:58 +0100)
committerThomas Schwinge <thomas@codesourcery.com>
Tue, 22 Feb 2022 16:32:03 +0000 (17:32 +0100)
commitf8187b5c0d22723c8e0a3d13d0ea5dd7ecfeff75
tree4b94026737aa83f6aff809f3aab56df8fe95aadf
parent537c96588026aec09b9a00d6d0f3670f612428b5
Fix OpenACC gang-redundant execution in 'libgomp.oacc-fortran/privatized-ref-2.f90'

This was a latent problem, and this commit here now resolves a regression that
after recent commit a78b1ab1df9ca44acc5638e8f9d0ae2e62bd65ed
"amdgcn: Tune default OpenMP/OpenACC GPU utilization" we had (only) seen on a
GCN offloading '-march=gfx908' system:

    {+WARNING: program timed out.+}
    [-PASS:-]{+FAIL:+} libgomp.oacc-fortran/privatized-ref-2.f90 -DACC_DEVICE_TYPE_radeon=1 -DACC_MEM_SHARED=0 -foffload=amdgcn-amdhsa  -O0  execution test

Same for other optimization levels.

Make sure that we're not executing non-parallelized code in gang-redundant
mode, by putting these parts into their own 'parallel' constructs, which then
default to 'num_gangs(1)'.

libgomp/
* testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Fix OpenACC
gang-redundant execution.
libgomp/testsuite/libgomp.oacc-fortran/privatized-ref-2.f90
This page took 0.057449 seconds and 5 git commands to generate.