92 #pragma omp single nowait
97 int t = omp_get_thread_num();
98 #pragma omp task depend(in: i1, i2)
99 {
int th = omp_get_thread_num();
100 printf(
"task 0_%d, th %d\n", t, th);
102 #pragma omp task depend(in: i1, i3)
103 {
int th = omp_get_thread_num();
104 printf(
"task 1_%d, th %d\n", t, th);
106 #pragma omp task depend(in: i2) depend(out: i1)
107 {
int th = omp_get_thread_num();
108 printf(
"task 2_%d, th %d\n", t, th);
110 #pragma omp task depend(in: i1)
111 {
int th = omp_get_thread_num();
112 printf(
"task 3_%d, th %d\n", t, th);
114 #pragma omp task depend(out: i2)
115 {
int th = omp_get_thread_num();
116 printf(
"task 4_%d, th %d\n", t, th);
118 #pragma omp task depend(out: i3)
119 {
int th = omp_get_thread_num();
120 printf(
"task 5_%d, th %d\n", t, th);
125 sdep[0].
addr = (size_t)&i1;
128 sdep[1].
addr = (size_t)&i4;
139 #pragma omp task depend(in: i1)
140 {
int th = omp_get_thread_num();
141 printf(
"task 8_%d, th %d\n", t, th);
int __kmpc_omp_task_with_deps(id *loc, int gtid, int **task, int nd, dep *dep_lst, int nd_noalias, dep *noalias_dep_lst)
int ** __kmpc_omp_task_alloc(id *loc, int gtid, int flags, size_t sz, size_t shar, entry_t rtn)