mirror of
https://github.com/OpenMP/Examples.git
synced 2025-04-04 05:41:33 +01:00
20 lines
428 B
Fortran
20 lines
428 B
Fortran
! @@name: apply_syntax.3
|
|
! @@type: F-free
|
|
! @@operation: compile
|
|
! @@expect: success
|
|
! @@version: omp_6.0
|
|
subroutine apply_complexarg(A)
|
|
implicit none
|
|
double precision :: A(100,100)
|
|
integer :: i, j
|
|
|
|
!$omp tile sizes(4,5) &
|
|
!$omp& apply(grid(1): reverse) &
|
|
!$omp& apply(intratile(2): unroll)
|
|
do i = 1, 100
|
|
do j = 1, 100
|
|
A(j,i) = A(j,i) + 1
|
|
end do
|
|
end do
|
|
end subroutine
|