]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Document/verify another aspect of OpenACC 'async' semantics in 'libgomp.oacc-c-c...
authorThomas Schwinge <thomas@codesourcery.com>
Fri, 24 Feb 2023 15:21:31 +0000 (16:21 +0100)
committerThomas Schwinge <thomas@codesourcery.com>
Fri, 10 Mar 2023 14:18:53 +0000 (15:18 +0100)
... 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.

libgomp/testsuite/libgomp.oacc-c-c++-common/data-3.c

index 5ec50b808a736be8d1a846335ee69218ae17fecb..c422cbcd325643dcf8067c3a7aa23031276e89ee 100644 (file)
@@ -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++)
     {