From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1BA23397249F; Tue, 15 Sep 2020 23:29:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1BA23397249F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1600212598; bh=8M5sNNVoqnhJ9xtTdyAUuocNzvEMGmDmy/Zf4lzFnjY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=VHgCnLE6e9iyZLFky1XjpeSdG3ZxE4QLeibXtI4w8oczG8eWwvYVqC5lcxJG1VnK/ ko9+rspHpIbJ9DhDto/0RfUGV53NuOhF8cWPbhahNCD/k1Fnljz8mquW7mNhEMu6qT bliwAciQAgya/A9sPUeu2WU4XPWsD7mzPzjldUfI= From: "burnus 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: Tue, 15 Sep 2020 23:29:57 +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: burnus 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: attachments.created 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: Tue, 15 Sep 2020 23:29:58 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95654 --- Comment #3 from Tobias Burnus --- Created attachment 49222 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D49222&action=3Dedit Slightly reduced example, compile with gfortran -fopenmp -O1 -ftracer Some testing; with gfortran -fopenmp -O1 -ftracer it shows something like: -31 =3D?=3D 64 The expected output is the last value of the loop iteration ("lastprivate"), i.e. (b-1+1)*2 =3D 32*2 =3D 64. =E2=80=93 When running the target section o= n the host (-foffload=3Ddisable) it works, which indicates either a shared-memory vs. non-shared issue or an nvptx problem. At a glance, the original dump looks fine; it seems as if either the .omp_data_i_28(D)->d1 =3D d1_9; .omp_data_i_28(D)->d2 =3D d2_11; is not executed or the PHI handling goes wrong.=