Lines Matching defs:tg

2528   kmp_taskgroup_t *tg = thread->th.th_current_task->td_taskgroup;
2533 KMP_ASSERT(tg != NULL);
2537 KA_TRACE(10, ("__kmpc_task_reduction_init: T#%d, tg %p, exiting nth=1\n",
2538 gtid, tg));
2539 return (void *)tg;
2542 gtid, tg, num));
2574 tg->reduce_data = (void *)arr;
2575 tg->reduce_num_data = num;
2576 return (void *)tg;
2638 kmp_taskgroup_t *tg, void *reduce_data) {
2642 thr, tg, reduce_data));
2650 tg->reduce_data = (void *)arr;
2651 tg->reduce_num_data = num;
2670 kmp_taskgroup_t *tg = (kmp_taskgroup_t *)tskgrp;
2671 if (tg == NULL)
2672 tg = thread->th.th_current_task->td_taskgroup;
2673 KMP_ASSERT(tg != NULL);
2682 tg = thread->th.th_current_task->td_taskgroup;
2683 KMP_ASSERT(tg != NULL);
2684 KMP_ASSERT(tg->reduce_data != NULL);
2685 arr = (kmp_taskred_data_t *)(tg->reduce_data);
2686 num = tg->reduce_num_data;
2691 while (tg != NULL) {
2692 arr = (kmp_taskred_data_t *)(tg->reduce_data);
2693 num = tg->reduce_num_data;
2725 KMP_ASSERT(tg->parent);
2726 tg = tg->parent;
2734 static void __kmp_task_reduction_fini(kmp_info_t *th, kmp_taskgroup_t *tg) {
2740 kmp_taskred_data_t *arr = (kmp_taskred_data_t *)tg->reduce_data;
2741 kmp_int32 num = tg->reduce_num_data;
2770 tg->reduce_data = NULL;
2771 tg->reduce_num_data = 0;
2777 static void __kmp_task_reduction_clean(kmp_info_t *th, kmp_taskgroup_t *tg) {
2778 __kmp_thread_free(th, tg->reduce_data);
2779 tg->reduce_data = NULL;
2780 tg->reduce_num_data = 0;
2792 ("__kmpc_reduction_modifier_init: T#%d, tg %p, exiting nth=1\n",
2798 kmp_taskgroup_t *tg;
2806 tg = (kmp_taskgroup_t *)__kmp_task_reduction_init<T>(gtid, num, data);
2808 KMP_MEMCPY(reduce_data, tg->reduce_data, num * sizeof(kmp_taskred_data_t));
2820 tg = thr->th.th_current_task->td_taskgroup;
2821 __kmp_task_reduction_init_copy<T>(thr, num, data, tg, reduce_data);
2823 return tg;