1 /* { dg-additional-options "-w" } */
5 /* Test of reduction on parallel directive. */
7 #define ACTUAL_GANGS 256
10 main (int argc
, char *argv
[])
12 int res
, res1
= 0, res2
= 0;
14 #if defined(ACC_DEVICE_TYPE_host)
19 #pragma acc parallel num_gangs(GANGS) num_workers(32) vector_length(32) \
20 reduction(+:res1) copy(res2, res1)
33 res
= res1
= res2
= 1;
35 #if defined(ACC_DEVICE_TYPE_host)
40 #pragma acc parallel num_gangs(GANGS) num_workers(32) vector_length(32) \
41 reduction(*:res1) copy(res1, res2)
48 for (int i
= 0; i
< GANGS
; ++i
)