From: Thomas Schwinge Date: Fri, 24 Feb 2023 15:21:31 +0000 (+0100) Subject: Document/verify another aspect of OpenACC 'async' semantics in 'libgomp.oacc-c-c... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b13cc8db8d4a6fd82b9b540945723d2eca293e0c;p=thirdparty%2Fgcc.git 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 --git a/libgomp/ChangeLog.omp b/libgomp/ChangeLog.omp index 633811af5a4b..402b14311a85 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 5ec50b808a73..c422cbcd3256 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++) {