5 integer, parameter :: n
= 1024
6 integer, dimension (0:n
-1) :: a
, b
, c
9 !$acc enter data create (a(0:n-1), b(0:n-1), c(0:n-1))
11 !$acc kernels present (a(0:n-1))
21 !$acc update device (b(0:n-1))
23 !$acc kernels present (a(0:n-1), b(0:n-1), c(0:n-1))
29 !$acc exit data copyout (a(0:n-1), c(0:n-1))
32 if (c(i
) .ne
. a(i
) + b(i
)) STOP 1