From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C544B3857346; Thu, 28 Apr 2022 13:26:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C544B3857346 From: "tschwinge at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/105421] New: GCN offloading, raised '-mgang-private-size': 'HSA_STATUS_ERROR_MEMORY_APERTURE_VIOLATION' Date: Thu, 28 Apr 2022 13:26:10 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: openacc X-Bugzilla-Severity: normal X-Bugzilla-Who: tschwinge at gcc dot gnu.org 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: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone cf_gcctarget Message-ID: 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: Thu, 28 Apr 2022 13:26:10 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105421 Bug ID: 105421 Summary: GCN offloading, raised '-mgang-private-size': 'HSA_STATUS_ERROR_MEMORY_APERTURE_VIOLATION' Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: openacc Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: tschwinge at gcc dot gnu.org CC: ams at gcc dot gnu.org, jules at gcc dot gnu.org Target Milestone: --- Target: GCN As discussed in , after commit r12-8252-gb2202431910e30d8505c94d1cb9341cac7080d10 "fortran: F= ix up gfc_trans_oacc_construct [PR104717]", we need commit r12-8311-g2a570f11a2fecf23998d7fe1d5cabad62cfe5cec "Fix up 'libgomp.oacc-fortran/print-1.f90' GCN offloading compilation [PR104717]", however: > That only works with the default GCN multilib '-march=3Dfiji', testing > on gfx803 amdfury2 system. For all of '-march=3Dgfx900' (amdnano2), > '-march=3Dgfx906' (amd_ryzen3), '-march=3Dgfx908' (amd-instinct1), I get: >=20 > libgomp: GCN fatal error: Asynchronous queue error > Runtime message: HSA_STATUS_ERROR_MEMORY_APERTURE_VIOLATION: The agen= t attempted to access memory beyond the largest legal address. >=20 > ..., and I still get that if lowering the allocation to the minimum, > '-foffload-options=3Damdgcn-amdhsa=3D-mgang-private-size=3D560'. >=20 > This is a really simple OpenACC 'parallel' construct: >=20 > !$acc parallel > write (0, '("The answer is ", I2)') var > !$acc end parallel >=20 > ..., which ought to launch a 1-gang x 1-worker x 1-vector GPU kernel, so > I'd assume '-mgang-private-size=3D560' (or '-mgang-private-size=3D13579' = in > fact) is not a problem?=