22#define mysleep(n) Sleep(n)
25#define mysleep(n) usleep((n)*1000)
52 int th = omp_get_thread_num();
55 printf(
"task __%d, th %d\n", t, th);
58 printf(
"Error1, checker %d != 1\n",
checker);
63 printf(
"Error2, checker %d != 1\n",
checker);
78 int nd_noalias,
dep *noalias_dep_lst);
79static id loc = {0, 2, 0, 0,
";file;func;0;0;;"};
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;
137 sdep[0].
addr = (size_t)&i4;
138 sdep[1].
addr = (size_t)&i1;
142 #pragma omp task depend(in: i1)
143 {
int th = omp_get_thread_num();
144 printf(
"task 8_%d, th %d\n", t, th);
void const char const char int ITT_FORMAT __itt_group_sync x void const char ITT_FORMAT __itt_group_sync s void ITT_FORMAT __itt_group_sync p void ITT_FORMAT p void ITT_FORMAT p no args __itt_suppress_mode_t unsigned int void size_t ITT_FORMAT d void ITT_FORMAT p void ITT_FORMAT p __itt_model_site __itt_model_site_instance ITT_FORMAT p __itt_model_task __itt_model_task_instance ITT_FORMAT p void ITT_FORMAT p void ITT_FORMAT p void size_t ITT_FORMAT d void ITT_FORMAT p const wchar_t ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s no args void ITT_FORMAT p size_t ITT_FORMAT d no args const wchar_t const wchar_t ITT_FORMAT s __itt_heap_function void size_t int ITT_FORMAT d __itt_heap_function void ITT_FORMAT p __itt_heap_function void void size_t int ITT_FORMAT d no args no args unsigned int ITT_FORMAT u const __itt_domain __itt_id ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain __itt_id ITT_FORMAT p const __itt_domain __itt_id __itt_timestamp __itt_timestamp ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain ITT_FORMAT p const __itt_domain __itt_string_handle unsigned long long ITT_FORMAT lu const __itt_domain __itt_string_handle unsigned long long ITT_FORMAT lu const __itt_domain __itt_id __itt_string_handle __itt_metadata_type size_t void ITT_FORMAT p const __itt_domain __itt_id __itt_string_handle const wchar_t size_t ITT_FORMAT lu const __itt_domain __itt_id __itt_relation __itt_id ITT_FORMAT p const wchar_t int ITT_FORMAT __itt_group_mark d int
#define omp_set_num_threads
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)
int(* entry_t)(int, int **)
int thunk(int gtid, int **pshareds)
int __kmpc_global_thread_num(id *)