repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Skip gnat.dg/prot7.adb on hppa.
[official-gcc.git]
/
libgomp
/
testsuite
/
libgomp.oacc-fortran
/
pr68813.f90
blob
c4552053e28c5d25b4d434da3439dc8dea65dfef
1
! { dg-do run }
2
!
3
program
foo
4
implicit none
5
integer
,
parameter
::
n
=
100
6
integer
,
dimension
(
n
,
n
) ::
a
7
integer
::
i
,
j
,
sum
=
0
8
9
a
=
1
10
11
!$acc parallel copyin(a(1:n,1:n)) firstprivate (sum)
12
!$acc loop gang reduction(+:sum)
13
do
i
=
1
,
n
14
!$acc loop vector reduction(+:sum)
15
do
j
=
1
,
n
16
sum
=
sum
+
a
(
i
,
j
)
17
enddo
18
enddo
19
!$acc end parallel
20
21
end program
foo