25#define mysleep(n) Sleep(n)
28#define mysleep(n) usleep((n)*1000)
65 int th = omp_get_thread_num();
71 printf(
"Error1, checker %d != 1\n",
checker);
76 printf(
"Error2, checker %d != 1\n",
checker);
84 int th = omp_get_thread_num();
90 printf(
"Error1, checker %d > 2\n",
checker);
95 printf(
"Error2, checker %d > 2\n",
checker);
110 int nd_noalias,
dep *noalias_dep_lst);
111static id loc = {0, 2, 0, 0,
";file;func;0;0;;"};
125 #pragma omp single nowait
130 int t = omp_get_thread_num();
131 #pragma omp task depend(in: i1, i2)
132 {
int th = omp_get_thread_num();
133 printf(
"task 0_%d, th %d\n", t, th);
138 printf(
"Error1, checker %d > 2\n",
checker);
143 printf(
"Error1, checker %d > 2\n",
checker);
148 #pragma omp task depend(in: i1, i2)
149 {
int th = omp_get_thread_num();
150 printf(
"task 1_%d, th %d\n", t, th);
155 printf(
"Error1, checker %d > 2\n",
checker);
160 printf(
"Error1, checker %d > 2\n",
checker);
168 sdep[0].
addr = (size_t)&i1;
171 sdep[1].
addr = (size_t)&i2;
182 t = omp_get_thread_num();
183 #pragma omp task depend(in: i1, i2)
184 {
int th = omp_get_thread_num();
185 printf(
"task 4_%d, th %d\n", t, th);
190 printf(
"Error1, checker %d > 2\n",
checker);
195 printf(
"Error1, checker %d > 2\n",
checker);
200 #pragma omp task depend(in: i1, i2)
201 {
int th = omp_get_thread_num();
202 printf(
"task 5_%d, th %d\n", t, th);
207 printf(
"Error1, checker %d > 2\n",
checker);
212 printf(
"Error1, checker %d > 2\n",
checker);
220 sdep[0].
addr = (size_t)&i1;
223 sdep[1].
addr = (size_t)&i3;
234 #pragma omp task depend(in: i3)
235 {
int th = omp_get_thread_num();
236 printf(
"task 8_%d, th %d\n", t, th);
241 printf(
"Error1, checker %d != 1\n",
checker); }
245 printf(
"Error1, checker %d != 1\n",
checker); }
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, task_t *task, int nd, dep *dep_lst, int nd_noalias, dep *noalias_dep_lst)
static int volatile checker
int thunk_s(int gtid, task_t *ptask)
int(* entry_t)(int, task_t *)
int thunk_m(int gtid, task_t *ptask)
task_t * __kmpc_omp_task_alloc(id *loc, int gtid, int flags, size_t sz, size_t shar, entry_t rtn)
int __kmpc_global_thread_num(id *)