20 !$omp task shared (x) depend(out: x)
23 !$omp task shared (x) depend(in: x)
24 if (x
.ne
.2) call abort
33 !$omp single private (x)
35 !$omp task shared (x) depend(out: x)
38 !$omp task shared (x) depend(in: x)
39 if (x
.ne
.2) call abort
48 !$omp parallel private (x)
51 !$omp task shared (x) depend(out: x)
54 !$omp task shared (x) depend(in: x)
55 if (x
.ne
.2) call abort
63 !$omp parallel private (x)
66 !$omp task depend(out: x)
69 !$omp task depend(in: x)
70 if (x
.ne
.1) call abort
74 end subroutine firstpriv
81 !$omp task shared(x) depend(in: x)
82 if (x
.ne
.1) call abort
84 !$omp task shared(x) depend(out: x)
89 end subroutine antidep
93 !$omp parallel private (x)
97 !$omp task shared(x) depend(in: x)
98 if (x
.ne
.1) call abort
100 !$omp task shared(x) depend(out: x)
106 end subroutine antidep2
113 !$omp task shared(x) depend(in: x)
114 if (x
.ne
.1) call abort
116 !$omp task shared(x) depend(out: x)
121 end subroutine antidep3
125 !$omp parallel private (x)
128 !$omp task shared(x) depend(out: x)
131 !$omp task shared(x) depend(out: x)
135 if (x
.ne
.2) call abort
138 end subroutine outdep
140 subroutine concurrent
145 !$omp task shared (x) depend(out: x)
148 !$omp task shared (x) depend(in: x)
149 if (x
.ne
.2) call abort
151 !$omp task shared (x) depend(in: x)
152 if (x
.ne
.2) call abort
154 !$omp task shared (x) depend(in: x)
155 if (x
.ne
.2) call abort
159 end subroutine concurrent
161 subroutine concurrent2
163 !$omp parallel private (x)
166 !$omp task shared (x) depend(out: x)
169 !$omp task shared (x) depend(in: x)
170 if (x
.ne
.2) call abort
172 !$omp task shared (x) depend(in: x)
173 if (x
.ne
.2) call abort
175 !$omp task shared (x) depend(in: x)
176 if (x
.ne
.2) call abort
181 end subroutine concurrent2
183 subroutine concurrent3
185 !$omp parallel private (x)
188 !$omp task shared (x) depend(out: x)
191 !$omp task shared (x) depend(in: x)
192 if (x
.ne
.2) call abort
194 !$omp task shared (x) depend(in: x)
195 if (x
.ne
.2) call abort
197 !$omp task shared (x) depend(in: x)
198 if (x
.ne
.2) call abort
202 end subroutine concurrent3