OpenMP-Examples/devices/sources/array_sections.1.f90
2021-08-17 09:11:55 -07:00

17 lines
363 B
Fortran

! @@name: array_sections.1f
! @@type: F-free
! @@compilable: no
! @@linkable: no
! @@expect: failure
! @@version: omp_4.0
subroutine foo()
integer :: A(30)
A = 1
!$omp target data map( A(1:4) )
! Cannot map distinct parts of the same array
!$omp target map( A(8:27) )
A(3) = 0
!$omp end target
!$omp end target data
end subroutine