41 _dep *dep_lst,
int nd_noalias,
_dep *noalias_l);
50 printf(
"addresses: %p %p %p\n", &i1, &i2, &i3);
53 int t = omp_get_thread_num();
54 printf(
"thread %d enters parallel\n", t);
57 #pragma omp task depend(in: i3)
59 int th = omp_get_thread_num();
60 printf(
"task 0 created by th %d, executed by th %d\n", t, th);
62 #pragma omp task depend(in: i2)
64 int th = omp_get_thread_num();
65 printf(
"task 1 created by th %d, executed by th %d\n", t, th);
70 static _id loc = {0, 2, 0, 0,
";test.c;func;67;0;;"};
75 sdep[0].
addr = (size_t)&i2;
77 sdep[1].
addr = (size_t)&i1;
81 printf(
"single done\n");
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_global_thread_num(_id *)
int(* entry_t)(int, task_t *)
task_t * __kmpc_omp_task_alloc(_id *loc, int gtid, int flags, size_t sz, size_t shar, entry_t rtn)
int __kmpc_omp_task_with_deps(_id *loc, int gtid, task_t *task, int ndeps, _dep *dep_lst, int nd_noalias, _dep *noalias_l)