Fix bug in an OpenACC async test case

libgomp/
	* testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
	call to acc_wait (1).

From-SVN: r255308
This commit is contained in:
Cesar Philippidis 2017-12-01 06:26:07 -08:00 committed by Cesar Philippidis
parent fb607032b8
commit ebdc83f0a8
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
* testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
call to acc_wait (1).
2017-11-24 Jakub Jelinek <jakub@redhat.com>
PR fortran/81304

View File

@ -64,6 +64,8 @@ main (int argc, char **argv)
for (i = 0; i < N; i++)
b[i] = a[i];
acc_wait (1);
acc_memcpy_from_device (a, d_a, nbytes);
acc_memcpy_from_device (b, d_b, nbytes);