From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F200E382E81F; Thu, 11 Mar 2021 14:05:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F200E382E81F From: "kcy at codesourcery dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libgomp/98738] task-detach-6.f90 hangs intermittently Date: Thu, 11 Mar 2021 14:05:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgomp X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kcy at codesourcery dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: kcy at codesourcery dot com X-Bugzilla-Target-Milestone: 11.0 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, 11 Mar 2021 14:05:26 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98738 --- Comment #15 from Kwok Yeung --- (In reply to Thomas Schwinge from comment #13) > Kwok, it seems -- at least in my testing -- that your latest commit > d656bfda2d8316627d0bbb18b10954e6aaf3c88c "openmp: Fix intermittent hanging > of task-detach-6 libgomp tests [PR98738]" has broken things with nvptx > offloading enabled: because of hanging > 'libgomp.c/../libgomp.c-c++-common/task-detach-6.c' I noted this hang at: https://gcc.gnu.org/pipermail/gcc-patches/2021-February/565740.html It does not seem to be an issue with the detach support though, as this tri= vial testcase will also hang. int main (void) { #pragma omp target #pragma omp parallel #pragma omp task ; } I have confirmed that this behaviour occurs even before my original patch f= or implementing the detach clause, and it does not occur with GCN offloading.=