1
0
mirror of https://github.com/OpenMP/Examples.git synced 2025-04-11 00:42:12 +01:00
OpenMP-Examples/sources/Example_tasking.5f.f
2015-01-13 11:38:24 -08:00

20 lines
397 B
Fortran

! @@name: tasking.5f
! @@type: F-fixed
! @@compilable: yes
! @@linkable: no
! @@expect: success
real*8 item(10000000)
integer i
!$omp parallel
!$omp single ! 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 single
!$omp end parallel
end