* builtins.def (BUILT_IN_SETJMP): Declare as library builtin instead
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-fortran / pr68813.f90
blob735350f6aac30bfde378be628549f72f6d782dcd
1 program foo
2 implicit none
3 integer, parameter :: n = 100
4 integer, dimension(n,n) :: a
5 integer :: i, j, sum = 0
7 a = 1
9 !$acc parallel copyin(a(1:n,1:n)) firstprivate (sum)
10 !$acc loop gang reduction(+:sum)
11 do i=1, n
12 !$acc loop vector reduction(+:sum)
13 do j=1, n
14 sum = sum + a(i, j)
15 enddo
16 enddo
17 !$acc end parallel
19 end program foo