11 volatile int done = 0;
13#pragma omp parallel num_threads(2)
15 while (omp_get_thread_num() != 0 && !done)
31 deps[0].
addr = (size_t)&x;
35 deps[1].
addr = (size_t)&y;
43 deps[0].
addr = (size_t)&x;
47 deps[1].
addr = (size_t)&y;
58 assert(A_succ->
node == B_node);
59 assert(A_succ->
next == NULL);
KMP_EXPORT kmp_int32 __kmpc_omp_task_with_deps(ident_t *loc_ref, kmp_int32 gtid, kmp_task_t *new_task, kmp_int32 ndeps, kmp_depend_info_t *dep_list, kmp_int32 ndeps_noalias, kmp_depend_info_t *noalias_dep_list)
KMP_EXPORT kmp_int32 __kmpc_global_thread_num(ident_t *)
KMP_EXPORT kmp_task_t * __kmpc_omp_task_alloc(ident_t *loc_ref, kmp_int32 gtid, kmp_int32 flags, size_t sizeof_kmp_task_t, size_t sizeof_shareds, kmp_routine_entry_t task_entry)
KMP_EXPORT kmp_depnode_list_t * __kmpc_task_get_successors(kmp_task_t *task)
KMP_EXPORT kmp_base_depnode_t * __kmpc_task_get_depnode(kmp_task_t *task)
kmp_depnode_list_t * next