From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 11DFE3857C5E; Fri, 1 Oct 2021 18:48:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 11DFE3857C5E From: "caplanr at predsci dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/102544] GCN offloading not working for 'amdgcn-amd-amdhsa--gfx906:sramecc+:xnack-' Date: Fri, 01 Oct 2021 18:48:07 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: openacc, openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: caplanr at predsci dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Oct 2021 18:48:08 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102544 --- Comment #7 from Ron --- That last case was using a fortran version of the test code as follows: program SMALL_TEST_F use openacc implicit none integer :: v v =3D 0 !$acc parallel copy(v) if (acc_on_device(ACC_DEVICE_HOST)) then v =3D -1 else v =3D 2 end if !$acc end parallel print *,'v is',v end program compiled with gfortran 10 with the flags: -g -fopenacc -foffload=3Damdgcn-amdhsa=3D"-march=3Dgfx906" -foffload=3D-lgf= ortran -foffload=3D-lm=