From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1643) id A508F3858D32; Fri, 10 Mar 2023 14:24:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A508F3858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678458289; bh=0xQeEZWEyuyV/7WTig6/pCLz2r1N+Icbg5LG/qaD46k=; h=From:To:Subject:Date:From; b=fbSZIiFUl71v4goByRaI3CJ8eoLjLAMAH2vsXrD8tIdfz51y5S5E0Gt4EyM9NEyZQ Ca8pRVJS0y9VEievVQBneNYEzwK9TPXOgu0lVuv+H7WgNWWRnAtZnj9ogVn37rstje tqY68/IkzsF/S4R45eByIF22tV94ogQt2Q1qHruQ= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Thomas Schwinge To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/omp/gcc-12] Document/verify another aspect of OpenACC 'async' semantics in 'libgomp.oacc-c-c++-common/data-3.c' X-Act-Checkin: gcc X-Git-Author: Thomas Schwinge X-Git-Refname: refs/heads/devel/omp/gcc-12 X-Git-Oldrev: c942b72532238e970ede66ffbc73e0a47edae0e3 X-Git-Newrev: b13cc8db8d4a6fd82b9b540945723d2eca293e0c Message-Id: <20230310142449.A508F3858D32@sourceware.org> Date: Fri, 10 Mar 2023 14:24:49 +0000 (GMT) List-Id: https://gcc.gnu.org/g:b13cc8db8d4a6fd82b9b540945723d2eca293e0c commit b13cc8db8d4a6fd82b9b540945723d2eca293e0c Author: Thomas Schwinge Date: Fri Feb 24 16:21:31 2023 +0100 Document/verify another aspect of OpenACC 'async' semantics in 'libgomp.oacc-c-c++-common/data-3.c' ... that I almost broke with later implementation changes. libgomp/ * testsuite/libgomp.oacc-c-c++-common/data-3.c: Document/verify another aspect of OpenACC 'async' semantics. (cherry picked from commit 442d51a20ef13a8e6c080ca30bc37fc93b6bfac4) Diff: --- libgomp/ChangeLog.omp | 6 ++++++ libgomp/testsuite/libgomp.oacc-c-c++-common/data-3.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/libgomp/ChangeLog.omp b/libgomp/ChangeLog.omp index 633811af5a4..402b14311a8 100644 --- a/libgomp/ChangeLog.omp +++ b/libgomp/ChangeLog.omp @@ -3,6 +3,12 @@ Backported from master: 2023-03-10 Thomas Schwinge + * testsuite/libgomp.oacc-c-c++-common/data-3.c: Document/verify + another aspect of OpenACC 'async' semantics. + + Backported from master: + 2023-03-10 Thomas Schwinge + * plugin/plugin-gcn.c (gcn_exec): Fix 'acc_ev_enqueue_launch_end' position. * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/data-3.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/data-3.c index 5ec50b808a7..c422cbcd325 100644 --- a/libgomp/testsuite/libgomp.oacc-c-c++-common/data-3.c +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/data-3.c @@ -144,8 +144,8 @@ main (int argc, char **argv) #pragma acc exit data copyout (a[0:N]) copyout (b[0:N]) copyout (c[0:N]) \ copyout (d[0:N]) copyout (e[0:N]) wait (1, 2, 3, 4) async (1) -#pragma acc exit data delete (N) -#pragma acc wait (1) +#pragma acc exit data delete (N) wait(1) async(2) +#pragma acc wait (2) for (i = 0; i < N; i++) {