summaryrefslogtreecommitdiff
path: root/libgomp
diff options
context:
space:
mode:
authorCesar Philippidis <cesar@codesourcery.com>2017-12-01 06:26:07 -0800
committerCesar Philippidis <cesar@gcc.gnu.org>2017-12-01 06:26:07 -0800
commitebdc83f0a8bc06147df7bf00fa4b3b805fa331c0 (patch)
treee8fd9f455962c42708e7fc7e6ab28ad3f90c9467 /libgomp
parentfb607032b8009d141409b8dc3c5e4df42c93a231 (diff)
downloadgcc-ebdc83f0a8bc06147df7bf00fa4b3b805fa331c0.tar.gz
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
Diffstat (limited to 'libgomp')
-rw-r--r--libgomp/ChangeLog5
-rw-r--r--libgomp/testsuite/libgomp.oacc-c-c++-common/data-2-lib.c2
2 files changed, 7 insertions, 0 deletions
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 <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
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);