From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D62B9384242A; Thu, 17 Sep 2020 10:20:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D62B9384242A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1600338005; bh=z9P/p2//ThfhW5ix4hy7nuL/LLgWb7QXbL0STySBKnM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=hsvGl4/0bXnsRoT4UmtLHPstMjWS56SzBWQQ0PvtSn2XnRTz3cZwRnCglMyJzAcaV 1d2oC/Bk7G5cLPRXkU2XSH4eZPyTM1906NCUpTnl1yZaZ4CiWmKxOVQVHpNK/Hx9PG 05lGdia/jTHbwqX4v7B9LafgzAacOTy9E4/7uqRY= 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 10:20:05 +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: cc 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 10:20:05 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95654 Tom de Vries changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rguenth at gcc dot gnu.org --- Comment #11 from Tom de Vries --- So, at this point we know that duplicating the BB containing VOTE_ANY causes problems in executing. But AFAIU, we do not know why. Is VOTE_ANY not supposed to be duplicated by design? If so, is there any documentation of that design, that explains that? At the nvptx level, VOTE_ANY translates to vote.ballot.b32, which does cross-lane communication, but has defined behaviour in divergent mode AFAIC= T. >>From that perspective at least, there's no problem with duplicating VOTE_AN= Y. My guess at this point, is that duplicating the block with VOTE_ANY has the effect that the JIT compiler doesn't recognize control flow divergence befo= re XCHG_IDX, and fails to insert the proper barrier. And XCHG_IDX translates to shfl.idx.b32, which has undefined behaviour in divergent mode.=