mirror of
https://github.com/OpenMP/Examples.git
synced 2025-04-04 05:41:33 +01:00
28 lines
523 B
Fortran
28 lines
523 B
Fortran
! @@name: apply_syntax.1
|
|
! @@type: F-free
|
|
! @@operation: compile
|
|
! @@expect: success
|
|
! @@version: omp_6.0
|
|
subroutine construct_unroll(A)
|
|
implicit none
|
|
integer :: i
|
|
double precision :: A(0:99)
|
|
|
|
!$omp unroll
|
|
!$omp tile sizes(4)
|
|
do i = 0, 99
|
|
A(i) = A(i) + 1
|
|
end do
|
|
end subroutine
|
|
|
|
subroutine apply_unroll(A)
|
|
implicit none
|
|
integer :: i
|
|
double precision :: A(0:99)
|
|
|
|
!$omp tile sizes(4) apply(grid: unroll)
|
|
do i = 0, 99
|
|
A(i) = A(i) + 1
|
|
end do
|
|
end subroutine
|