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
/
kernels-acc-loop-reduction.f90
blob
0b939c04fbb8f7932374c413b1c2603c0450d85e
1
! { dg-do run }
2
!
3
program
foo
4
IMPLICIT NONE
5
INTEGER
::
vol
=
0
6
7
call
bar
(
vol
)
8
9
if
(
vol
.
ne
.
2
)
stop
1
10
end program
foo
11
12
subroutine
bar
(
vol
)
13
IMPLICIT NONE
14
INTEGER
::
vol
15
INTEGER
::
j
16
17
!$ACC KERNELS
18
!$ACC LOOP REDUCTION(+:vol)
19
DO
j
=
1
,
2
20
vol
=
vol
+
1
21
ENDDO
22
!$ACC END KERNELS
23
end subroutine
bar