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.
This commit is contained in:
Thomas Schwinge 2023-02-24 16:21:31 +01:00
parent 413ec1d12c
commit 442d51a20e
1 changed files with 2 additions and 2 deletions

View 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]) \ #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) copyout (d[0:N]) copyout (e[0:N]) wait (1, 2, 3, 4) async (1)
#pragma acc exit data delete (N) #pragma acc exit data delete (N) wait(1) async(2)
#pragma acc wait (1) #pragma acc wait (2)
for (i = 0; i < N; i++) for (i = 0; i < N; i++)
{ {