3 ! Test data located inside common blocks. This test does not exercise
4 ! ACC DECLARE. Most of the data clauses are implicit.
7 integer, parameter :: n
= 100
16 common /BLOCK
/ x
, y
, z
, j
19 if (abs(x(i
) - i
- z
) .ge
. 0.0001) stop 1
21 end subroutine validate
23 subroutine incr_parallel
29 common /BLOCK
/ x
, y
, z
, j
35 !$acc end parallel loop
36 end subroutine incr_parallel
38 subroutine incr_kernels
44 common /BLOCK
/ x
, y
, z
, j
51 end subroutine incr_kernels
59 common /BLOCK
/ a
, b
, c
, j
61 !$acc data copyout(a, c)
65 !$acc update device(c)
71 !$acc end parallel loop
81 ! Test pcopy without copyout
98 !$acc end parallel loop
113 !$acc end parallel loop
118 !$acc data copyin(b, c) copyout(a)
132 !$acc parallel loop reduction(+:j)
136 !$acc end parallel loop