mirror of
https://github.com/OpenMP/Examples.git
synced 2025-04-07 23:22:11 +01:00
26 lines
604 B
Fortran
26 lines
604 B
Fortran
! @@name: task_dep.7f
|
|
! @@type: F-free
|
|
! @@compilable: no
|
|
! @@linkable: no
|
|
! @@expect: failure
|
|
subroutine foo
|
|
integer :: a,b,c
|
|
c = 0
|
|
!$omp parallel
|
|
!$omp single
|
|
!$omp task depend(out: a)
|
|
a = longTaskA()
|
|
!$omp end task
|
|
!$omp task depend(out: b)
|
|
b = shortTaskB()
|
|
!$omp end task
|
|
!$omp task depend(in: a) depend(mutexinoutset: c)
|
|
c = shortTaskAC(a,c)
|
|
!$omp end task
|
|
!$omp task depend(in: b) depend(mutexinoutset: c)
|
|
c = longTaskBC(b,c)
|
|
!$omp end task
|
|
!$omp end single
|
|
!$omp end parallel
|
|
end subroutine foo
|