9 main (int argc
, char* argv
[])
12 mystruct
*m
= (mystruct
*) malloc (sizeof (*m
));
15 m
->a
= (int *) malloc (N
* sizeof (int));
16 m
->b
= (int *) malloc (N
* sizeof (int));
18 for (i
= 0; i
< N
; i
++)
24 #pragma acc enter data copyin(m[0:1])
26 for (int i
= 0; i
< 99; i
++)
30 #pragma acc parallel loop copy(m->a[0:N])
31 for (j
= 0; j
< N
; j
++)
33 #pragma acc parallel loop copy(m->b[0:N])
34 for (j
= 0; j
< N
; j
++)
38 #pragma acc exit data copyout(m[0:1])
40 for (i
= 0; i
< N
; i
++)