mirror of git://gcc.gnu.org/git/gcc.git
Correctly describe OpenACC async/wait dependencies
libgomp/ * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust. * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise. * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise. Reviewed-by: Thomas Schwinge <thomas@codesourcery.com> From-SVN: r267148
This commit is contained in:
parent
18c247cc0b
commit
17469af75b
|
|
@ -1,3 +1,9 @@
|
||||||
|
2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
|
||||||
|
|
||||||
|
* testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
|
||||||
|
* testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
|
||||||
|
* testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
|
||||||
|
|
||||||
2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
|
2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
|
||||||
|
|
||||||
PR libgomp/88370
|
PR libgomp/88370
|
||||||
|
|
|
||||||
|
|
@ -153,7 +153,7 @@ main (int argc, char **argv)
|
||||||
d[ii] = ((a[ii] * a[ii] + a[ii]) / a[ii]) - a[ii];
|
d[ii] = ((a[ii] * a[ii] + a[ii]) / a[ii]) - a[ii];
|
||||||
|
|
||||||
#pragma acc parallel present (a[0:N], b[0:N], c[0:N], d[0:N], e[0:N], N) \
|
#pragma acc parallel present (a[0:N], b[0:N], c[0:N], d[0:N], e[0:N], N) \
|
||||||
async (4)
|
wait (1, 2, 3) async (4)
|
||||||
for (int ii = 0; ii < N; ii++)
|
for (int ii = 0; ii < N; ii++)
|
||||||
e[ii] = a[ii] + b[ii] + c[ii] + d[ii];
|
e[ii] = a[ii] + b[ii] + c[ii] + d[ii];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -162,7 +162,7 @@ main (int argc, char **argv)
|
||||||
d[ii] = ((a[ii] * a[ii] + a[ii]) / a[ii]) - a[ii];
|
d[ii] = ((a[ii] * a[ii] + a[ii]) / a[ii]) - a[ii];
|
||||||
|
|
||||||
#pragma acc parallel present (a[0:N], b[0:N], c[0:N], d[0:N], e[0:N]) \
|
#pragma acc parallel present (a[0:N], b[0:N], c[0:N], d[0:N], e[0:N]) \
|
||||||
wait (1) async (4)
|
wait (1, 2, 3) async (4)
|
||||||
for (int ii = 0; ii < N; ii++)
|
for (int ii = 0; ii < N; ii++)
|
||||||
e[ii] = a[ii] + b[ii] + c[ii] + d[ii];
|
e[ii] = a[ii] + b[ii] + c[ii] + d[ii];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -138,7 +138,7 @@ main (int argc, char **argv)
|
||||||
d[ii] = ((a[ii] * a[ii] + a[ii]) / a[ii]) - a[ii];
|
d[ii] = ((a[ii] * a[ii] + a[ii]) / a[ii]) - a[ii];
|
||||||
|
|
||||||
#pragma acc parallel present (a[0:N], b[0:N], c[0:N], d[0:N], e[0:N]) \
|
#pragma acc parallel present (a[0:N], b[0:N], c[0:N], d[0:N], e[0:N]) \
|
||||||
wait (1,5) async (4)
|
wait (1, 2, 3, 5) async (4)
|
||||||
for (int ii = 0; ii < N; ii++)
|
for (int ii = 0; ii < N; ii++)
|
||||||
e[ii] = a[ii] + b[ii] + c[ii] + d[ii];
|
e[ii] = a[ii] + b[ii] + c[ii] + d[ii];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue