diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2022-01-21 14:58:23 +0100 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2022-02-22 17:32:03 +0100 |
commit | f8187b5c0d22723c8e0a3d13d0ea5dd7ecfeff75 (patch) | |
tree | 4b94026737aa83f6aff809f3aab56df8fe95aadf /gcc/go | |
parent | 537c96588026aec09b9a00d6d0f3670f612428b5 (diff) | |
download | gcc-f8187b5c0d22723c8e0a3d13d0ea5dd7ecfeff75.zip gcc-f8187b5c0d22723c8e0a3d13d0ea5dd7ecfeff75.tar.gz gcc-f8187b5c0d22723c8e0a3d13d0ea5dd7ecfeff75.tar.bz2 |
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.
Diffstat (limited to 'gcc/go')
0 files changed, 0 insertions, 0 deletions