| 1 |
! { dg-additional-options "-fcray-pointer" } |
| 2 |
! See also cray.f95. |
| 3 |
|
| 4 |
program test |
| 5 |
call oacc1 |
| 6 |
contains |
| 7 |
subroutine oacc1 |
| 8 |
implicit none |
| 9 |
integer :: i |
| 10 |
real :: pointee |
| 11 |
pointer (ptr, pointee) |
| 12 |
!$acc declare device_resident (pointee) |
| 13 |
!$acc declare device_resident (ptr) |
| 14 |
!$acc data copy (pointee) ! { dg-error "Cray pointee" } |
| 15 |
!$acc end data |
| 16 |
!$acc data deviceptr (pointee) ! { dg-error "Cray pointee" } |
| 17 |
!$acc end data |
| 18 |
!$acc parallel private (pointee) ! { dg-error "Cray pointee" } |
| 19 |
!$acc end parallel |
| 20 |
!$acc serial private (pointee) ! { dg-error "Cray pointee" } |
| 21 |
!$acc end serial |
| 22 |
!$acc host_data use_device (pointee) ! { dg-error "Cray pointee" } |
| 23 |
!$acc end host_data |
| 24 |
!$acc parallel loop reduction(+:pointee) ! { dg-error "Cray pointee" } |
| 25 |
do i = 1,5 |
| 26 |
enddo |
| 27 |
!$acc end parallel loop |
| 28 |
!$acc serial loop reduction(+:pointee) ! { dg-error "Cray pointee" } |
| 29 |
do i = 1,5 |
| 30 |
enddo |
| 31 |
!$acc end serial loop |
| 32 |
!$acc parallel loop |
| 33 |
do i = 1,5 |
| 34 |
!$acc cache (pointee) ! { dg-error "Cray pointee" } |
| 35 |
enddo |
| 36 |
!$acc end parallel loop |
| 37 |
!$acc serial loop |
| 38 |
do i = 1,5 |
| 39 |
!$acc cache (pointee) ! { dg-error "Cray pointee" } |
| 40 |
enddo |
| 41 |
!$acc end serial loop |
| 42 |
!$acc update device (pointee) ! { dg-error "Cray pointee" } |
| 43 |
!$acc update host (pointee) ! { dg-error "Cray pointee" } |
| 44 |
!$acc update self (pointee) ! { dg-error "Cray pointee" } |
| 45 |
!$acc data copy (ptr) |
| 46 |
!$acc end data |
| 47 |
!$acc data deviceptr (ptr) ! { dg-error "Cray pointer" } |
| 48 |
!$acc end data |
| 49 |
!$acc parallel private (ptr) |
| 50 |
!$acc end parallel |
| 51 |
!$acc serial private (ptr) |
| 52 |
!$acc end serial |
| 53 |
!$acc host_data use_device (ptr) ! { dg-error "Cray pointer" } |
| 54 |
!$acc end host_data |
| 55 |
!$acc parallel loop reduction(+:ptr) ! { dg-error "Cray pointer" } |
| 56 |
do i = 1,5 |
| 57 |
enddo |
| 58 |
!$acc end parallel loop |
| 59 |
!$acc serial loop reduction(+:ptr) ! { dg-error "Cray pointer" } |
| 60 |
do i = 1,5 |
| 61 |
enddo |
| 62 |
!$acc end serial loop |
| 63 |
!$acc parallel loop |
| 64 |
do i = 1,5 |
| 65 |
!TODO: This must fail, as in openacc-1_0-branch. |
| 66 |
!$acc cache (ptr) ! { dg-error "" "TODO" { xfail *-*-* } } |
| 67 |
enddo |
| 68 |
!$acc end parallel loop |
| 69 |
!$acc serial loop |
| 70 |
do i = 1,5 |
| 71 |
!TODO: This must fail, as in openacc-1_0-branch. |
| 72 |
!$acc cache (ptr) ! { dg-error "" "TODO" { xfail *-*-* } } |
| 73 |
enddo |
| 74 |
!$acc end serial loop |
| 75 |
!$acc update device (ptr) |
| 76 |
!$acc update host (ptr) |
| 77 |
!$acc update self (ptr) |
| 78 |
end subroutine oacc1 |
| 79 |
end program test |