From: Cesar Philippidis Date: Fri, 1 Dec 2017 14:26:07 +0000 (-0800) Subject: Fix bug in an OpenACC async test case X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ebdc83f0a8bc06147df7bf00fa4b3b805fa331c0;p=gcc.git 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 --- diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 9f6b17ba4d9..9387d56a9a5 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,8 @@ +2017-12-01 Cesar Philippidis + + * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing + call to acc_wait (1). + 2017-11-24 Jakub Jelinek PR fortran/81304 diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/data-2-lib.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/data-2-lib.c index e1aa2c931ff..2ddfa7d4a01 100644 --- a/libgomp/testsuite/libgomp.oacc-c-c++-common/data-2-lib.c +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/data-2-lib.c @@ -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);