10 #pragma omp parallel num_threads (4)
14 #pragma omp taskwait depend(in: a) nowait
15 #pragma omp taskwait depend(in: a) nowait
19 #pragma omp taskwait depend(in: a) nowait
20 #pragma omp taskwait depend(in: a) nowait
22 for (i
= 0; i
< 64; ++i
)
23 #pragma omp task depend(in: a) shared(a)
25 #pragma omp taskwait depend(inout: a) nowait
26 for (i
= 0; i
< 64; ++i
)
27 #pragma omp task depend(inoutset: a) shared(a)
32 #pragma omp taskwait nowait depend(out: a) depend(in: b)
33 #pragma omp taskwait depend(inout: b)
34 for (i
= 0; i
< 64; ++i
)
35 if (a
[i
] != 2 * i
+ 1)