2021-08-17 09:11:55 -07:00

30 lines
553 B
Fortran

! @@name: tasking.9f
! @@type: F-fixed
! @@compilable: yes
! @@linkable: no
! @@expect: rt-error
! @@version: omp_3.0
module example
contains
subroutine work
!$omp task
! Task 1
!$omp task
! Task 2
!$omp critical
! Critical region 1
! do work here
!$omp end critical
!$omp end task
!$omp critical
! Critical region 2
! Capture data for the following task
!$omp task
!Task 3
! do work here
!$omp end task
!$omp end critical
!$omp end task
end subroutine
end module