2 /* { dg-skip-if "" { *-*-* } { "*" } { "-DACC_MEM_SHARED=0" } } */
11 main(int argc
, char **argv
)
17 a
= (float *) malloc(N
* sizeof (float));
18 b
= (float *) malloc(N
* sizeof (float));
20 for (i
= 0; i
< N
; i
++)
26 #pragma acc parallel copyin(a[2:4]) copyout(b[2:4])
32 for (i
= 2; i
< 4; i
++)
41 for (i
= 0; i
< N
; i
++)
47 #pragma acc parallel copyin(a[0:4]) copyout(b[0:4])
55 for (i
= 0; i
< 4; i
++)
64 for (i
= 0; i
< N
; i
++)
70 #pragma acc parallel copyin(a[0:4]) copyout(b[4:4])
78 for (i
= 0; i
< 4; i
++)
84 for (i
= 4; i
< 8; i
++)
90 if (acc_is_present (a
, (N
* sizeof (float))))
93 if (acc_is_present (b
, (N
* sizeof (float))))