From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6E66F38708CB; Thu, 17 Sep 2020 13:53:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6E66F38708CB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1600350815; bh=dAgADlWQK1mmy7ZX5e35Qeh9e8KxZ6e9E2WYUfpi+bA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=rn2t0xnUi2kfpQRhVOiVo0TFhy9+AgIFK0mswyblH9MNP5SlXgLHLygeDPK5CvGRt NT2FoELG5tz4zNk+v0QhLqyRyYG0cloM0TX9Eg3v7ITv73jXryE4pCCaxv0PKDWvN6 xmgwaHNHFZwfHlK4flhKst99cmoodEWrVXEPxGmE= From: "vries at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/95654] nvptx offloading: FAIL: libgomp.fortran/pr66199-5.f90 -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions execution test Date: Thu, 17 Sep 2020 13:53:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW 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: Thu, 17 Sep 2020 13:53:35 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95654 --- Comment #12 from Tom de Vries --- (In reply to Tom de Vries from comment #7) > Minimal example after commit 91347c3bbf7 "Fortran: OpenMP - fix simd with > (last)private (PR97061)": > ... > ! { dg-do run }=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 >=20 > program main > implicit none > integer :: d1 > !$omp target map(from: d1)=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20 >=20 > !$omp teams distribute parallel do simd default(none) lastprivate(d1)= =20=20=20=20=20 >=20 > do d1 =3D 0, 31 > end do > !$omp end target=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 >=20 > if (d1 /=3D 32) stop 3 > end program > ... To further reduce: set num_teams to 2, and num_threads to 1: ... !$omp teams distribute parallel do simd default(none) lastprivate(d1) num_teams (2) num_threads (1) ... Makes it easier to reason about the code.=