Lines Matching refs:gtid
208 static inline void __kmp_track_dependence(kmp_int32 gtid, kmp_depnode_t *source, in __kmp_track_dependence() argument
231 sink_data = &__kmp_threads[gtid]->th.ompt_thread_info.task_data; in __kmp_track_dependence()
240 __kmp_depnode_link_successor(kmp_int32 gtid, kmp_info_t *thread, in __kmp_depnode_link_successor() argument
250 KMP_ACQUIRE_DEPNODE(gtid, dep); in __kmp_depnode_link_successor()
252 __kmp_track_dependence(gtid, dep, node, task); in __kmp_depnode_link_successor()
256 gtid, KMP_TASK_TO_TASKDATA(dep->dn.task), in __kmp_depnode_link_successor()
260 KMP_RELEASE_DEPNODE(gtid, dep); in __kmp_depnode_link_successor()
266 static inline kmp_int32 __kmp_depnode_link_successor(kmp_int32 gtid, in __kmp_depnode_link_successor() argument
276 KMP_ACQUIRE_DEPNODE(gtid, sink); in __kmp_depnode_link_successor()
278 __kmp_track_dependence(gtid, sink, source, task); in __kmp_depnode_link_successor()
282 gtid, KMP_TASK_TO_TASKDATA(sink->dn.task), in __kmp_depnode_link_successor()
286 KMP_RELEASE_DEPNODE(gtid, sink); in __kmp_depnode_link_successor()
293 __kmp_process_deps(kmp_int32 gtid, kmp_depnode_t *node, kmp_dephash_t **hash, in __kmp_process_deps() argument
298 filter, gtid, ndeps, dep_barrier)); in __kmp_process_deps()
300 kmp_info_t *thread = __kmp_threads[gtid]; in __kmp_process_deps()
318 __kmp_depnode_link_successor(gtid, thread, task, node, last_ins); in __kmp_process_deps()
321 __kmp_depnode_link_successor(gtid, thread, task, node, last_mtxs); in __kmp_process_deps()
329 __kmp_depnode_link_successor(gtid, thread, task, node, last_out); in __kmp_process_deps()
344 __kmp_depnode_link_successor(gtid, thread, task, node, last_mtxs); in __kmp_process_deps()
355 __kmp_depnode_link_successor(gtid, thread, task, node, last_out); in __kmp_process_deps()
364 __kmp_depnode_link_successor(gtid, thread, task, node, last_ins); in __kmp_process_deps()
375 __kmp_depnode_link_successor(gtid, thread, task, node, last_out); in __kmp_process_deps()
404 gtid, npredecessors)); in __kmp_process_deps()
412 static bool __kmp_check_deps(kmp_int32 gtid, kmp_depnode_t *node, in __kmp_check_deps() argument
425 gtid, taskdata, ndeps, ndeps_noalias, dep_barrier)); in __kmp_check_deps()
467 npredecessors = __kmp_process_deps<true>(gtid, node, hash, dep_barrier, ndeps, in __kmp_check_deps()
470 gtid, node, hash, dep_barrier, ndeps_noalias, noalias_dep_list, task); in __kmp_check_deps()
485 gtid, npredecessors, taskdata)); in __kmp_check_deps()
508 kmp_int32 __kmpc_omp_task_with_deps(ident_t *loc_ref, kmp_int32 gtid, in __kmpc_omp_task_with_deps() argument
515 KA_TRACE(10, ("__kmpc_omp_task_with_deps(enter): T#%d loc=%p task=%p\n", gtid, in __kmpc_omp_task_with_deps()
517 __kmp_assert_valid_gtid(gtid); in __kmpc_omp_task_with_deps()
518 kmp_info_t *thread = __kmp_threads[gtid]; in __kmpc_omp_task_with_deps()
533 OMPT_LOAD_OR_GET_RETURN_ADDRESS(gtid)); in __kmpc_omp_task_with_deps()
605 if (__kmp_check_deps(gtid, node, new_task, ¤t_task->td_dephash, in __kmpc_omp_task_with_deps()
611 gtid, loc_ref, new_taskdata)); in __kmpc_omp_task_with_deps()
623 gtid, loc_ref, new_taskdata)); in __kmpc_omp_task_with_deps()
629 gtid, loc_ref, new_taskdata)); in __kmpc_omp_task_with_deps()
631 kmp_int32 ret = __kmp_omp_task(gtid, new_task, true); in __kmpc_omp_task_with_deps()
668 void __kmpc_omp_wait_deps(ident_t *loc_ref, kmp_int32 gtid, kmp_int32 ndeps, in __kmpc_omp_wait_deps() argument
671 KA_TRACE(10, ("__kmpc_omp_wait_deps(enter): T#%d loc=%p\n", gtid, loc_ref)); in __kmpc_omp_wait_deps()
676 gtid, loc_ref)); in __kmpc_omp_wait_deps()
679 __kmp_assert_valid_gtid(gtid); in __kmpc_omp_wait_deps()
680 kmp_info_t *thread = __kmp_threads[gtid]; in __kmpc_omp_wait_deps()
702 OMPT_LOAD_OR_GET_RETURN_ADDRESS(gtid)); in __kmpc_omp_wait_deps()
764 gtid, loc_ref)); in __kmpc_omp_wait_deps()
776 if (!__kmp_check_deps(gtid, &node, NULL, ¤t_task->td_dephash, in __kmpc_omp_wait_deps()
781 gtid, loc_ref)); in __kmpc_omp_wait_deps()
792 flag.execute_tasks(thread, gtid, FALSE, in __kmpc_omp_wait_deps()
801 gtid, loc_ref)); in __kmpc_omp_wait_deps()