1 /* Verify that reduction variables can appear in data clause. */
13 for (int i
= 0; i
< n
; i
++)
16 #pragma acc parallel loop num_gangs (10) copy (s) reduction (+:s)
17 for (int i
= 0; i
< n
; i
++)
20 #pragma acc parallel loop num_gangs (10) reduction (+:s) copy (s)
21 for (int i
= 0; i
< n
; i
++)
24 assert (s
== n
* (n
+ 1));