35 printf(
"addresses: %p %p %p\n", &i1, &i2, &i3);
38 int t = omp_get_thread_num();
39 printf(
"thread %d enters parallel\n", t);
42 #pragma omp task depend(in: i3)
44 int th = omp_get_thread_num();
45 printf(
"task 0 created by th %d, executed by th %d\n", t, th);
47 #pragma omp task depend(in: i2)
49 int th = omp_get_thread_num();
50 printf(
"task 1 created by th %d, executed by th %d\n", t, th);
55 static _id loc = {0, 2, 0, 0,
";test9.c;func;60;0;;"};
57 sdep[0].
addr = (size_t)&i2;
59 sdep[1].
addr = (size_t)&i1;
63 printf(
"single done\n");
#define omp_set_num_threads
int __kmpc_global_thread_num(_id *)
void __kmpc_omp_wait_deps(_id *, int, int, _dep *, int, _dep *)