From ebdc83f0a8bc06147df7bf00fa4b3b805fa331c0 Mon Sep 17 00:00:00 2001 From: Cesar Philippidis Date: Fri, 1 Dec 2017 06:26:07 -0800 Subject: [PATCH] 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 --- libgomp/ChangeLog | 5 +++++ libgomp/testsuite/libgomp.oacc-c-c++-common/data-2-lib.c | 2 ++ 2 files changed, 7 insertions(+) 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); -- 2.30.2