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
2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
[official-gcc.git]
/
libgomp
/
testsuite
/
libgomp.oacc-fortran
/
declare-5.f90
blob
3ab91147e0728022ab69f32819f9f520e1c161e7
1
! { dg-do run }
2
3
module
vars
4
implicit none
5
real
b
6
!$acc declare device_resident (b)
7
end module
vars
8
9
program
test
10
use
vars
11
use
openacc
12
implicit none
13
real
a
14
15
if
(
acc_is_present
(
b
) .
neqv
. .
true
.)
STOP
1
16
17
a
=
2.0
18
19
!$acc parallel copy (a)
20
b
=
a
21
a
=
1.0
22
a
=
a
+
b
23
!$acc end parallel
24
25
if
(
acc_is_present
(
b
) .
neqv
. .
true
.)
STOP
2
26
27
if
(
a
.
ne
.
3.0
)
STOP
3
28
29
end program
test