Sign in
gnu
/
gcc
/
a8404c07e7fca388c02c39077865f7d5fa928430
/
.
/
gcc
/
testsuite
/
c-c++-common
/
goacc
/
deviceptr-3.c
blob: bab56c3e6523eb0df98366c2e45db09d930647c0 [
file
] [
log
] [
blame
]
float
*
d_a
;
void
f
(
float
*
a
)
{
#pragma
acc parallel copyout
(
a
[
3
:
10
])
deviceptr
(
d_a
)
d_a
[
2
]
+=
1.0
;
#pragma
acc parallel deviceptr
(
d_a
)
copyout
(
a
[
3
:
10
])
d_a
[
2
]
+=
1.0
;
}