2022-11-04 09:35:42 -07:00

20 lines
416 B
Fortran

! @@name: tasking.6
! @@type: F-fixed
! @@operation: compile
! @@expect: success
! @@version: omp_3.0
real*8 item(10000000)
!$omp parallel
!$omp single
!$omp task untied
! loop iteration variable i is private
do i=1,10000000
!$omp task ! i is firstprivate, item is shared
call process(item(i))
!$omp end task
end do
!$omp end task
!$omp end single
!$omp end parallel
end